From: "Iñaki Baz Castillo" Date: 2009-02-21T01:04:37+09:00 Subject: Un-escaping hexadecimal code Hi, I receive a String allowing hexadecimal escaping by using %XX syntax: %61lice => alice ( %61 == a ) I would like to un-escape the string. I've got it using "eval" but I'd prefer avoiding using "eval": string = "%61lice" string = eval %{ "#{ string.gsub(/%/,'\x') }" } => "alice" How could I avoid the usage of "eval" to un-escape the string? Thanks a lot. -- Iñaki Baz Castillo