tohateam / google-api-translate-java

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

Character encoding problems #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
System.out.println(
  Translate.translate("size", Language.ENGLISH, Language.GERMAN)
); 

What is the expected output? What do you see instead?
Expected: Größe
Got: Größe

What version of the product are you using? On what operating system?
Windows XP, German. Important system properties (System.getProperties()):
java.vm.version=1.6.0_01-b06 
user.country=CH 
file.encoding=Cp1252 
user.language=de

Original issue reported on code.google.com by thomas.t...@gmail.com on 27 Nov 2007 at 2:03

GoogleCodeExporter commented 8 years ago
The following solves the problem for me:
new InputStreamReader(inputStream, "UTF-8") 
instead of 
new InputStreamReader(inputStream)

Original comment by thomas.t...@gmail.com on 27 Nov 2007 at 2:38

GoogleCodeExporter commented 8 years ago
Sorry, I saw it's already fixed in the latest source code ;-)

Original comment by thomas.t...@gmail.com on 27 Nov 2007 at 2:40

GoogleCodeExporter commented 8 years ago
No problem. 0.24 should contain this fix.

Original comment by rich.mid...@gmail.com on 1 Dec 2007 at 11:35