Closed GoogleCodeExporter closed 9 years ago
I think it's perhaps a UTF-8 issue with Windows, not this API, I'm sure you can
set
the character encoding somewhere - others have had the same issue.
Unfortunately (in
this instance if no other) I'm not a Windows user so I'm not sure where you set
that.
Original comment by rich.mid...@gmail.com
on 28 Apr 2010 at 7:05
ya i tried converting the output string to UTF-8 format, but its displaying
some
different characters other than ???.
below is the code sample i tried
public class TranslateExample {
public static void main(String[] args) throws Exception {
GoogleAPI.setHttpReferrer("en-US");
Language toLanguage = Language.fromString("ja");
String t = Translate.execute("Hello World",
Language.ENGLISH, toLanguage);
System.out.println(new String(t.getBytes("UTF-8")));
}
}
how to get the exact translated string ?
any suggestions ?
Original comment by bonuanil...@gmail.com
on 28 Apr 2010 at 10:16
Original issue reported on code.google.com by
bonuanil...@gmail.com
on 28 Apr 2010 at 6:14