participate


Internationalization (I18N) - Unicode display in Windows XP
This question is not answered.

<<   Back to Forum  |   Give us Feedback
10 Duke Stars available
This topic has 3 replies on 1 page.
abhi28576
Posts:1
Registered: 9/13/09
Unicode display in Windows XP   
Sep 13, 2009 6:27 AM
 
 
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
 
uncle_alice
Posts:3,818
Registered: 9/26/00
Re: Unicode display in Windows XP   
Sep 13, 2009 10:04 AM (reply 1 of 3)  (In reply to original post )
 
 
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.
 
tjacobs01
Posts:10,232
Registered: 10/11/01
Re: Unicode display in Windows XP   
Sep 19, 2009 12:07 PM (reply 2 of 3)  (In reply to #1 )
 
 
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.
 
Michael-O
Posts:15
Registered: 5/20/06
Re: Unicode display in Windows XP   
Nov 7, 2009 10:21 AM (reply 3 of 3)  (In reply to original post )
 
 
Type in cmd this: chcp 65001

You should see what you want.
 
This topic has 3 replies on 1 page.
Back to Forum
 
Read the Developer Forums Code of Conduct

Click to email this message Email this Topic

Edit this Topic
  
 
 
Forums Statistics
    Users Online : 54
  • Guests : 135

About Sun forums
  • Sun Forums is a large collection of user generated discussions. It is here to help you ask questions, find answers, and participate in discussions.

    Check out our guide on Getting started with Sun Forums for a full walkthrough of how to best leverage the benefits of this community.

Powered by Jive Forums