I18N
Hello Gys,
need urgent help. After working on my first question another one rises up.
I am too stupid. Here is my code:
String test = "\u0441";
String test2 = "";
byte[] bytes;
bytes = test.getBytes("UTF-8");
test2 = new String(bytes,"UTF-8");
System.out.println(test2);
And the output is "?", but i expect an russian character.
Thanks
Tobias
For displaying non-Ascii characters, your command line display must be set to those characters.For example, in the case of "command prompt", you may set your code page to 852 or 855 by the command:
CHCP 852
or
CHCP 855
(Before doing that, you should confirm the current code page by the simple command
CHCP
and note the code page number displayed for the case of reverting to the default code page.)