Robert Klemme
4/13/2007 4:03:00 PM
On 13.04.2007 17:47, mrpink wrote:
> Hi,
> I have a variable like:
>
> test = 0x65 0x78
What exactly is this supposed to mean? This is not valid Ruby:
$ ruby -ce 'test = 0x65 0x78'
-e:1: parse error, unexpected tINTEGER, expecting $
> and I wanna have this converted or outputet to-----> ex
>
> which is the ascii code of 0x65 (=e) and 0x78 (=x) . But how can I do
> this ?
>
> test = 0x65 doesn't, test = "0x65" doesn't test = String(0x65) also
> doesn't...
>
> can someone please help me with this?
Very likely, if we know what your input is.
robert