class method
URI.decode_uri_component
(::String str, ?::encoding enc) -> ::String
decode_uri_component(str, enc=Encoding::UTF_8)
lib/uri/common.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/uri/common.rb, line 441
def self.decode_uri_component(str, enc=Encoding::UTF_8)
_decode_uri_component(/%\h\h/, str, enc)
end
Like URI.decode_www_form_component, except that '+' is preserved.
See also
._decode_uri_component
.decode_www_form
.decode_www_form_component
also in
4.1 · 3.4 · 3.3 · 3.2