[Python-bugs-list] [Bug #114427] bug with urlencode method from urllib

noreply@sourceforge.net noreply@sourceforge.net
Thu, 14 Sep 2000 09:44:15 -0700


Bug #114427, was updated on 2000-Sep-14 06:48
Here is a current snapshot of the bug.

Project: Python
Category: Library
Status: Open
Resolution: None
Bug Group: None
Priority: 7
Summary: bug with urlencode method from urllib

Details: result of encode ',' is ',' but not '%2C'

Example
>>> import urllib
>>> dico={'toto':','}
>>> a = urllib.urlencode(dico)
>>> a
'toto=,'

or I think that it must return 'toto=%2C'

Example :
>>> import urllib
>>> b = urllib.unquote_plus('%2C')
>>> print b
,

r_gesnot@hotmail.com



Follow-Ups:

Date: 2000-Sep-14 09:44
By: jhylton

Comment:
Comma is listed in the list of always safe characters, but it shouldn't be.  It is a reserved character in the query part of a URL.

-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=114427&group_id=5470