Solved

Convert Hex to unicode then to Chinese character

Posted on 2004-08-17
3
6,618 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
handling Struts tag, JSTL tag and scriptlet in Ajax. 7 171
Problem getting Apache SSL request directed to Tomcat directory 5 123
reflection example 3 92
sortaSum challenge java 17 171
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
With the rapid rise in mobile usage, mobile devices are here to stay and have become an integral part of doing business. Here are 9 great apps for your BYOD environment.
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 …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

861 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now