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

[416 byte] By [tobiasschmidtSa] at [2007-9-29 17:02:45]
# 1

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.)

fsato4a at 2007-7-15 15:39:31 > top of Java-index,Administration Tools,Sun Connection...
# 2
Thank you.I got it. I was to blind to see the problem.
tobiasschmidtSa at 2007-7-15 15:39:31 > top of Java-index,Administration Tools,Sun Connection...