Maintenance Ruby 3.3 gets fixes, but no new features. 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.3.0/lib/uri/common.rb, line 379
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 · 4.0 · 3.4 · 3.2