Actions
Bug #14358
closedURI.encode_www_form_component doesn't encode bad chars properly
Description
URI.encode_www_form_component "\u02DA", Encoding::WINDOWS_1252
#=> "%26730%3B"
# Expected:
#=> "%26%23730%3B"
As per http://www.w3.org/TR/2013/CR-html5-20130806/forms.html#url-encoded-form-data :
"For each character in the entry's name and value that cannot be expressed using the selected character encoding, replace the character by a string consisting of a U+0026 AMPERSAND character (&), a "#" (U+0023) character, one or more ASCII digits representing the Unicode code point of the character in base ten, and finally a ";" (U+003B) character."
Files
Actions
Like0
Like0Like0Like0