Convert string with hex ASCII codes to characters
You can use Array#pack
:
["666f6f626172"].pack('H*')#=> "foobar"
H
is the directive for a hex string (high nibble first).
You can use Array#pack
:
["666f6f626172"].pack('H*')#=> "foobar"
H
is the directive for a hex string (high nibble first).