Solved

Convert Hex to unicode then to Chinese character

Posted on 2004-08-17
3
6,631 Views
Last Modified: 2012-06-27
Hi there,

I would like to know how to convert a hexa code to unicode and display the unicode in the browser as
chinese character.

example: I have a hexa code that looks like below:
004100690044006500540069004b00750061006e004a00697231768463d06b3e673a
and
00520065006e005400690061006e00540061006e0067004c00690075004c006500694efb592958026d416cea

How am I convert these 2 hex code to unicode and display it as chinese character in the browser
using JSP/servlet?

Please advice me on this .....

thanks in advance
0
Comment
Question by:kennethcky
3 Comments
 
LVL 3

Accepted Solution

by:
ss_p earned 35 total points
ID: 11852086
Try something along the lines of

char myUnicodeCharacter = (char) Integer.parseInt(myFourDigitHexString, 16);
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Learn how the use of a bunch of disparate tools requiring a lot of manual attention led to a series of unfortunate backup events for one company.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question