anupam409 / google-api-translate-java

Automatically exported from code.google.com/p/google-api-translate-java
0 stars 0 forks source link

Wrong characters in translated text (bad character decoding) #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I get garbage characters in the translated text because of bad character
decoding (I'm using a Mac, the default encoding on my system isn't UTF-8)

The solution to this is to explicitly configure the input stream reader to
use UTF-8 as character encoding:

new BufferedReader(new InputStreamReader(inputStream, "UTF-8"));

Rob

Original issue reported on code.google.com by rjjuurl...@gmail.com on 24 Nov 2007 at 8:43

GoogleCodeExporter commented 9 years ago
Will be fixed in the next build. Thanks.

Original comment by rich.mid...@gmail.com on 24 Nov 2007 at 11:20