Character to String coversion

Trying to create a string object from a char of value 0x1E, but each time I try it, it changes the value from  0x1E to 0x2E.

Need assistance with this regards.
slickdealsAsked:
Who is Participating?
 
CEHJCommented:
Please post your code. Try
char c = '\u001e';
String s = "" + c;

Open in new window

0
 
MicheleMarconCommented:
Which compiler/IDE are you using?

And of course: are you sure to have saved the file before compiling?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.