Solved

Convert Hex to unicode then to Chinese character

Posted on 2004-08-17
3
6,692 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exception creating bean of class 5 235
Reading data  from excel sheet and displaying 1 97
how to exclude a file using regex 5 123
Handle form fields in spring mvc controller 1 72
Changing a few Outlook Options can help keep you organized!
A hard and fast method for reducing Active Directory Administrators members.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Suggested Courses

738 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