encode_www_form_component

encode_www_form_component(str)
Class Public methods

Encode given str to URL-encoded form data.

This method doesn't convert *, -, ., 0-9, A-Z, _, a-z, but does convert SP (ASCII space) to + and converts others to %XX.

This is an implementation of www.w3.org/TR/html5/association-of-controls-and-forms.html#url-encoded-form-data

See ::decode_www_form_component, ::encode_www_form

doc_ruby_on_rails
2015-06-10 13:18:43
Comments
Leave a Comment

Please login to continue.