URL decode a string in Ruby

By: Jeeva Emailed: 1675 times Printed: 2154 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

unescape(string)

URL-decode a string.

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

Ruby Home | All Ruby Tutorials | Latest Ruby Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(1)


1. View Comment

works for me - thanks !!!!!

View Tutorial          By: Vaneeza at 2011-12-19 17:06:09

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Jeeva
out() in Ruby
header() in Ruby
unescapeHTML() in Ruby
unescapeElement() in Ruby
URL decode a string in Ruby
Format a Time object as a String in Ruby
pretty() in Ruby
parse(query) in Ruby
new(type = "query") in Ruby
escapeHTML() in Ruby
escapeElement() in Ruby
URL encode a string in Ruby
CGI class in Ruby

More Tutorials in Ruby
Standard Library Packages in Ruby
Module Abbrev in Ruby
encoding and decoding in Ruby using Base64 Module
Benchmark module in Ruby
benchmark(caption = "", label_width = nil, fmtstr = nil, *labels) {|report| ...} in Ruby
bm(label_width = 0, *labels) {|report| ...} in Ruby
bmbm(width = 0) {|job| ...} in Ruby
CGI class in Ruby
URL encode a string in Ruby
escapeElement() in Ruby
escapeHTML() in Ruby
new(type = "query") in Ruby
parse(query) in Ruby
pretty() in Ruby
Format a Time object as a String in Ruby

More Latest News
Most Viewed Articles (in Ruby )
Using Proxy to connect to URLs in Ruby
URL encode a string in Ruby
URL decode a string in Ruby
Traversing all files in a directory using Ruby
Command-line Arguments in Ruby on rails
Methods in Ruby on rails
encoding and decoding in Ruby using Base64 Module
CGI class in Ruby
escapeElement() in Ruby
Format a Time object as a String in Ruby
Open and manipulate CSV files in Ruby
Reading URL content using Ruby (HTTP)
Reading emails using POP3 in Ruby
Sending emails using SMTP in Ruby
Getting started with Ruby on rails
Most Emailed Articles (in Ruby)
benchmark(caption = "", label_width = nil, fmtstr = nil, *labels) {|report| ...} in Ruby
out() in Ruby
Sending emails using SMTP in Ruby
Using Observer in Ruby
Prompts, Command Lines, Prompts, and irb in Ruby on rails
Naming conventions in Ruby on rails
encoding and decoding in Ruby using Base64 Module
Benchmark module in Ruby
bmbm(width = 0) {|job| ...} in Ruby
escapeElement() in Ruby
Format a Time object as a String in Ruby
date and time in Ruby
Security in dRuby
Reading URL content using Ruby (HTTP)
Using Generator in Ruby