Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes Create String from BIG5 hex value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Create String from BIG5 hex value" Watch "Create String from BIG5 hex value" New topic
Author

Create String from BIG5 hex value

Dominic Steng�rd
Ranch Hand

Joined: Feb 05, 2001
Posts: 186
Hi JavaGurus!

I have two characters encoded in BIG5 hex code:
1) a578
2) a55f

These codes represent two characters in Chinese.
I need to know the smartest way of having them converted to a String?

The String constructor can handle the following:
new String(byte[] bytes, String charsetname) ...

Best regards


Dominic Steng�rd<br />Sun Certified Java 2 Programmer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Create String from BIG5 hex value