Skip to Main Content

Java APIs

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!

Problem with Escape Code for HEX characters

843810Mar 11 2004 — edited Mar 11 2004
All the tutorials say that the escape code for HEX characters is \x but when I try to compile the following, I get 'illegal escape code' errors.

String mystring2 = "\x02" + mystring + "\x03";

Any other escape codes I try (like \002 for octal or \u2202 for unicode) work fine.

Help please.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 8 2004
Added on Mar 11 2004
2 comments
788 views