This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author orsenthil
Recipients William.Wu, georg.brandl, orsenthil, vstinner
Date 2011-02-11.12:44:10
SpamBayes Score 0.00011879067
Marked as misclassified No
Message-id <1297428253.95.0.964341053217.issue11082@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks. Committed in r88394.

Regarding the encoding information. An explanation of this sort might be helpful.

The string can be encoded using ISO-8859-1 which is the default encoding for POST data or the user can also encode using  a custom encoding , in which case,  Content-Type: header should specify the encoding value in addition to 'application/x-www-form-urlencoded' which is specified for POST data. For Example:, if one has to use utf-8

>>> sdata = urllib.parse.urlencode({"ሀ":"ሢ"})
>>> bytesdata = sdata.encode('utf-8')
>>>reqheaders=dict([("Content-Type"," application/x-www-form-urlencoded ; charset=utf-8")])
>>>urllib.request.Request('http://www.example.com',bytesdata,reqheaders)
History
Date User Action Args
2011-02-11 12:44:14orsenthilsetrecipients: + orsenthil, georg.brandl, vstinner, William.Wu
2011-02-11 12:44:13orsenthilsetmessageid: <1297428253.95.0.964341053217.issue11082@psf.upfronthosting.co.za>
2011-02-11 12:44:10orsenthillinkissue11082 messages
2011-02-11 12:44:10orsenthilcreate