Skip to Main Content

New to Java

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!

Converting Hex string to unicode

807597Jan 28 2004 — edited Feb 15 2008
I am reading in a hex representation of Unicode characters as a string.(for example: 004100200042)

I want to convert the string from hex to unicode, and write the corresponding characters to a file. The output should look like follow:

A B (0041 = Capital A, 0020 = space, 0042 = Capital B)


Could you please help?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 14 2008
Added on Jan 28 2004
11 comments
4,803 views