wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Unicode character Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Unicode character" Watch "Unicode character" New topic
Author

Unicode character

Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
Hi,
I am having string from server:
\u30CF\u30ED\u30FC\u30EA\u30C3\u30AF
My Client programs reads this as normal ascii characters. I have to display kanji characters.
How Can I convert this string to unicode and kanji characters?
Please let me know
Thanks
angela
ragabo
Greenhorn

Joined: Jul 19, 2001
Posts: 8

try this http://www-106.ibm.com/developerworks/unicode/library/glossaries/unicode.html
Adrian Ferreira
Ranch Hand

Joined: May 29, 2000
Posts: 118
Angela,
It depends of the encoding your JVM is using.
From API:
"The default encoding is determined during virtual-machine startup and typically
depends upon the locale and encoding being used by the underlying operating system."
In some encoding, this sequence does not map to what you need.
This example may help you when trying to find the encoding you look for. After, you
can change this and convert using your encoding.

Let me know if you have any problem.
Hope it helps,
Adrian
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unicode character
 
Similar Threads
Japanese Characters
How to display Chinese in TextArea
Few Doubts about encoding
Conversion of Unicode to Kanji!
Retrieving Japanese data from an access database