471,887 Members | 828 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 software developers and data experts.

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 12172
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
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.