From: Daniel Berger Date: 2003-05-06T06:28:16+09:00 Subject: Re: [Q] Binary data Bill Kelly wrote: > > Hi, > > From: "Daniel Carrera" Just a quick example: x = "hello".unpack("b*").to_s -> "0001011010100110001101100011011011110110" x[0] -> 49 (i.e. 00010110) Also, see sig. Hope that helps. Regards, Dan -- p ["010100101010111011001110001011100000010010000010011101101111011000101110000101101010011001001110000001000100101010101110010001101001111000000100000100101000011011000110110101101010011001001110"].pack("b*")