Posted By:
Rob_Eamon
Posted On:
Wednesday, September 4, 2002 10:38 AM
Here's a little code snippet you can try:
String zeroPad = "000";
String s = "abc
";
String u = "";
for(int i=0; i{
String n = Integer.toHexString((int)s.charAt(i));
u += "\u" + zeroPad.subString(0, 4-n.length()) + n;
}
System.out.println(s);
System.out.println(u);
hth