Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class method

URI.decode_uri_component

(::String str, ?::encoding enc) -> ::String
decode_uri_component(str, enc=Encoding::UTF_8)

Like URI.decode_www_form_component, except that '+' is preserved.