I don't know why you're getting Strings that represent the Unicode byte
representations of your strings. My guess is that whatever is populating the database
is pumping the data in incorrectly.
Meanwhile, here's a workaround.
String s = "0x736D616C6C6170754069782E6E6574636F6D2E636F6D";
//account for all pairs except "0x" header s
byte[] b = new byte[Math.max(0, s.length()/2 - 1)];
//translate bytes from character pairs, starting after header "0x"
for (int i=2, j=0; i < s.length(); i+=2, j++) {
b[j] = Byte.parseByte( s.substring(i,i+2), 16 );
}
String translated = new String(b);
System.out.println(translated);
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".