Joe Van Dyk wrote: > Joel VanderWerf wrote: >>irb(main):003:0> [1,2,3,4].pack "C*" >>=> "\001\002\003\004" >>irb(main):004:0> [1,2,3,4].pack("C*").unpack("C*") >>=> [1, 2, 3, 4] > > > Ah.... I didn't know that I needed to have the "C*" part. Thanks. unpack("C4") will work too. You may want "c4" instead if you are using signed ints.