Skip to content
class method

URI.encode_uri_component

(::String str, ?::encoding enc) -> ::String
encode_uri_component(str, enc=nil)

Like URI.encode_www_form_component, except that ' ' (space) is encoded as '%20' (instead of '+').