Solved

Convert Hex to unicode then to Chinese character

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
We have come a long way with backup and data protection — from backing up to floppies, external drives, CDs, Blu-ray, flash drives, SSD drives, and now to the cloud.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

705 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

21 Experts available now in Live!

Get 1:1 Help Now