uri.rb

Path: vendor/rails/activesupport/lib/active_support/core_ext/uri.rb
Last Update: Wed Oct 12 18:49:19 +0000 2011

Required files

uri  

Methods

unescape  

Public Instance methods

[Source]

    # File vendor/rails/activesupport/lib/active_support/core_ext/uri.rb, line 10
10:       def unescape(str, escaped = @regexp[:ESCAPED])
11:         enc = (str.encoding == Encoding::US_ASCII) ? Encoding::UTF_8 : str.encoding
12:         str.gsub(escaped) { [$&[1, 2].hex].pack('C') }.force_encoding(enc)
13:       end

[Validate]