End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
URI.decode_uri_component
decode_uri_component(str, enc=Encoding::UTF_8)
lib/uri/common.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/uri/common.rb, line 351
def self.decode_uri_component(str, enc=Encoding::UTF_8)
_decode_uri_component(/%\h\h/, str, enc)
end
Decodes given str of URL-encoded data.
This does not decode + to SP.
See also
._decode_uri_component
.decode_www_form
.decode_www_form_component
also in
4.1 · 4.0 · 3.4 · 3.3