[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus
Senthil Kumaran
report at bugs.python.org
Mon Feb 13 08:23:49 CET 2012
Senthil Kumaran <senthil at uthcode.com> added the comment:
Stephen - urlencode is responsible for producing the application/x-www-form-urlencoded format, usually used in the FORMs in the web.
As per the spec, the Space characters are replaced by `+'. -
http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.1
What you are looking for is probably quote and quote_plus helper functions.
When I had this doubt (long back), I referred to Java's URLEncoder class to see how it was behaving and then looked at the HTML specs. It was kind of standard behavior across different libraries. Closing this as invalid.
----------
resolution: -> invalid
stage: test needed -> committed/rejected
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13866>
_______________________________________
More information about the Python-bugs-list
mailing list