title: Java convert Windows-1252 to UTF-8, some letters are wrong
body: <p>I receive data from a external Microsoft SQL 2008 database (I make queries with MyBatis). The data is encoded as &quot;Windows-1252&quot;.</p>
  <p>I have tried to re-encode to UTF-8:</p>
  <pre><code>String textoFormado = ...value from MyBatis... ; 
  String s = new String(textoFormado.getBytes(&quot;Windows-1252&quot;), &quot;UTF-8&quot;);
  </code></pre>
  <p>Almost the whole string is correctly decoded, but some letters with accents  are not.</p>
  <p>For example:</p>
  <ol>
  <li>I received this: <code>Ã�vila</code></li>
  <li>The code above makes: <code>�?vila</code></li>
  <li>I expected: <code>Ávila</code></li>
  </ol>