From: "Peña, Botp" Date: 2008-06-10T18:53:56+09:00 Subject: Re: To and from hex nibbles # s.scan(/../).map{|i| i.to_i(16)}.pack("C*") # #=> "testing 123" sorry, i missed dblack's scanf s.scanf("%2x"*s.size).pack("C*") #=> "testing 123" kind regards -botp