1.2k questions
1.4k answers
361 comments
339 users
Set the channel encoding to UTF-8:
You can use a preprocess script that will convert Windows-1252 to UTF-8.
if (java.util.Arrays.equals(bytesIn, new java.lang.String(bytesIn, "UTF-8").getBytes("UTF-8"))) { // UTF-8 is probably what we have... bytesOut = bytesIn; } else { // Try to convert between Windows-1252 to UTF-8. bytesOut = new java.lang.String(bytesIn, "Windows-1252").getBytes("UTF-8"); }