Ruby 1.9.0 リファレンスマニュアル > ライブラリ一覧 > library uri > module URI > decode
unescape(str) -> Stringdecode(str) -> StringURI 文字列をデコードした文字列を返します。
例:
require 'uri'
puts URI.unescape('http://images.google.co.jp/images?q=%A5%E2%A5%CA%A5%EA%A5%B6&ie=EUC-JP')
#=> "http://images.google.co.jp/images?q=モナリザ&ie=EUC-JP"