Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unicode character

 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
 
Adrian Ferreira
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic