Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to convert Character to equivalent Hexadecimal character

807580Feb 9 2010 — edited Feb 10 2010
Hi,
I have a String having UTF-8 characters. I want to replace this unicode character with its equivalent Hexadecimal character code.

Similar to this website (which I think uses javascript to do this)

http://code.cside.com/3rdpage/us/unicode/converter.html

If you put Bình Nhưỡng' and press "Characters to Dec, Hex Codes" button, it shows the result
'Bình Nhưỡng'

Exactly the same thing, I want to do through java code and vice-versa.

Please suggest any Java sample program to do this.

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 10 2010
Added on Feb 9 2010
6 comments
533 views