Subject: Re: How to convert character to hexadecimal?
From: "Iaki Baz Castillo" <ibc aliax.net>
Date: Tue, 13 May 2008 22:57:57 +0900
References: 301623301629301634
In-reply-to: 301634
2008/5/13, Rob Biedenharn <Rob / agileconsultingllc.com>:
> " ".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
<ibc / aliax.net>