public class JapTest {
public static void main (String[] argv) throws UnsupportedEncodingException {
String unicodeMessage =
"\u7686\u3055\u3093\u3001\u3053\u3093\u306b\u3061\u306f";
String someText="\u0C13";
PrintStream out = new PrintStream(System.out, true,"UTF-8");
out.println(unicodeMessage);
out.println(someText);
}
}
But when I am running this program I am getting the output like this
皆さん、こんにちは
ఓ
Can some one help me how to get the exact character display in window xp when i run the above the program ? Thanks in advance
uncle_alice wrote:
Don't try to use the system console for that; it's just too weak. Write the text to a file instead, and use a good text editor to read the file.
You don't even need a good text editor, just the right font. Look through your installed system fonts. If you can find one like 'Ariel ... Unicode ...' you can install that on a JTextArea and it should display the text.