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