Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > uriライブラリ > URIモジュール > encode_www_form_component
encode_www_form_component(str) -> String
文字列を URL-encoded form data にエンコードした文字列を返します。
This doesn't convert *, -, ., 0-9, A-Z, _, a-z, does convert SP to +, and convert others to %XX.
This refers http://www.w3.org/TR/html5/forms.html#url-encoded-form-data
[SEE_ALSO] URI.decode_www_form_component, URI.encode_www_form