[issue12390] urllib.parse.urlencode encoding lists as strings

Senthil Kumaran report at bugs.python.org
Thu Jun 23 05:41:41 CEST 2011


Senthil Kumaran <senthil at uthcode.com> added the comment:

I see you missed the doseq parameter which is applicable in this case.

print(urllib.parse.urlencode(dictQuery, encoding='iso8859-1',doseq=True))
a=b&c=d&c=e&b=c

----------
nosy: +orsenthil
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12390>
_______________________________________


More information about the Python-bugs-list mailing list