title: how fix encoding on java
body: <p>Good afternoon,</p>
  
  <p>I'm trying resolve the classic encoding error in java, but I don't know what to do...</p>
  
  <p>I try:</p>
  
  <pre><code>add on jsp: &lt;%@page contentType="text/html"pageEncoding="UTF-8"%&gt;
  
  use "SQL_Latin1_General_CP1_CI_AS" no select(sqlserver)
  
  add "CharacterSet=UTF-8" on String conection of jdbc
  
  add response.setContentType("application/json"); and response.setCharacterEncoding("utf-8");  on servlet
  </code></pre>
  
  <p>but nothing works!!!!</p>
  
  <p>SGBD: SQL Server
  Server: GlassFish</p>
  
  <p>Exemple record of database "EstÃƒÂ¡"</p>
  
  <p>what can I do?</p>