Method: Rack::Utils.unescape

Defined in:
lib/rack/utils.rb

.unescape(s, encoding = Encoding::UTF_8) ⇒ Object

Unescapes a URI escaped string with encoding. encoding will be the target encoding of the string returned, and it defaults to UTF-8



52
53
54
# File 'lib/rack/utils.rb', line 52

def unescape(s, encoding = Encoding::UTF_8)
  URI.decode_www_form_component(s, encoding)
end