From: "Iñaki Baz Castillo" Date: 2008-05-13T22:57:57+09:00 Subject: Re: How to convert character to hexadecimal? 2008/5/13, Rob Biedenharn : > " ".unpack('H*')[0] > => "20" > "\t".unpack('H*')[0] > => "09" > > Put an "x" or "0x" on the front if you wish: > "x"+(" ".unpack('H*')[0]) Great ! -- Iñaki Baz Castillo