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 an ascii?

807605Sep 4 2007 — edited Sep 4 2007
Hi,everyone!

I want to convert the string "����" to ascii , for example:

"����" -> \u4e2d\u56fd
The "->" means the "����" will be converted to "\u4e2d\u56fd" by the tools which the j2sdk's bin name "native2ascii.exe", but I need to use java language to do the same converting work for some reason.
So could you help me?
Thanks a lot!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 2 2007
Added on Sep 4 2007
5 comments
451 views