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!

How to convert string to byte array without ascii code

807607Nov 1 2006 — edited Nov 2 2006
Hello,

I am using myString.getBytes[] -- that works But

if my string contains "959"
I want the Byte Array to contain 9,5,9 and not 57,53,57 ( ASCII code)

I tried different encodings but nothing works. What else can I do,

Thank you,

sqlagentman
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 30 2006
Added on Nov 1 2006
9 comments
230 views