Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

converting byte[] to char[]

807605Oct 8 2007 — edited Oct 10 2007
Hi,

I want to convert a byte array to a char array.
The simple cast of each byte to char is not ok.
The char array should be in ASCII-format.
So how to convert the byte[] to a ASCII-char[] ?

regards

Olek
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 7 2007
Added on Oct 8 2007
20 comments
1,352 views