469,271 Members | 1,776 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

How to convert Single byte character set to Double byte character set using java

I am working on a application which is developed using java. This application should handle both single byte character sets(English) and Double byte character sets (Japenese - Katakana, kanji, etc.,). And even have to make a conversion between SBCS & DBCS and vice versa too. So if i could get some idea about it and even if some available java code snippet, it will be more helpful.
Dec 23 '08 #1
3 11855
11,448 Expert 8TB
Look at the String(byte[] bytes) constructor; it builds a String given a simple byte array. There are other useful constructors in the String class too. You may also have a look at the several available InputStreams.

kind regards,

Dec 23 '08 #2
Can you reply with some java codes for converting double byte to single byte

or single byte to double..
Jan 14 '09 #3
11,448 Expert 8TB
Did you read the API documentation for the String class as I suggested?

kind regards,

Jan 14 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

30 posts views Thread by John Carroll | last post: by
5 posts views Thread by Zytan | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.