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!

Unicode to hex conversion

807607Nov 13 2006 — edited Nov 13 2006
Hi friends,
I have unicode string and in want to change it to hex representation. for e.g.
String unicodemsg="इंजीनियर";

I want to change it on the format as

String hexmsg="\u0907\u0902\u091c\u0940\u0928\u093f\u092f\u0930";
Please help me.
Thanks and Regards
Ram
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 11 2006
Added on Nov 13 2006
5 comments
712 views