From: David H. <Dav...@sa...> - 2010-08-13 15:01:30
|
It's Ok. "\t" means the tab character, which is ascii code 9. So your conversion is probably working correctly. From: Greg78 [mailto:gre...@ho...] Sent: Friday, August 13, 2010 5:08 AM To: jyt...@li... Subject: [Jython-users] convert hex byte string into byte array Hello, I would like to convert a hex byte string into a byte array ; Here is an example : hex byte string : "0109053901101232FFFFFF020A89813009999990000" and I would like to have as a result : "\x01\x09\x05\x39\x01\x10\x12\x32\xFF\xFF\xFF\x02\x0A\x89\x81\x30\x09\x99\x99\x90\x00\" I found some functions but I have problem with some bytes like "09" which is converted into "\t" Thanks in advance for help Greg ________________________________ View this message in context: convert hex byte string into byte array<http://old.nabble.com/convert-hex-byte-string-into-byte-array-tp29426914p29426914.html> Sent from the jython-users mailing list archive<http://old.nabble.com/jython-users-f4123.html> at Nabble.com. |