URL decode a string in Ruby

By: Jeeva Printer Friendly Format    

unescape(string)

URL-decode a string.

  string = CGI::unescape("%27Stop%21%27+said+Fred")
     # => "'Stop!' said Fred"


Ask a Question



Most Viewed Articles (in Ruby )

Latest Articles (in Ruby)

Comment on this tutorial