3 Replies Latest reply: Nov 7, 2009 12:21 PM by 843810 RSS

    Unicode display in Windows XP

    843810
      Hi,
      I wanna print the Unicode representation in native language and I have simple java program

      import java.io.PrintStream;
      import java.io.UnsupportedEncodingException;

      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