how to use unicode in java?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mahesh_Kota
Posted On:   Monday, January 27, 2003 04:33 AM

how to make unicode work in java? i'm getting question marks in the output instead of unicode characters while i run the unicode program.

Re: how to use unicode in java?

Posted By:   Stephen_Ostermiller  
Posted On:   Wednesday, January 29, 2003 06:58 AM

You are really asking, "How do I display glyphs for unicode characters in Linux?" Unicode is already working for you. Strings in Java use 16 bit unicode characters. Any data processing you do with these unicode Strings will be done flawlessly.


To display all unicode characters, you need to be using a font that has glyphs for the characters you wish to display. I don't know what your linux distribution comes with, but you may have to download fonts. If you have the fonts on your system, you have to make sure that Java is using them. Java gets its font information from the font.properties files. Sun has documentation about editing these files.


Some people that I've talked to have had good luck merging the font.ja.properties into font.properties to get japanese fonts working properly.

About | Sitemap | Contact