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