Message128380
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) |
|
Date |
User |
Action |
Args |
2011-02-11 12:44:14 | orsenthil | set | recipients:
+ orsenthil, georg.brandl, vstinner, William.Wu |
2011-02-11 12:44:13 | orsenthil | set | messageid: <1297428253.95.0.964341053217.issue11082@psf.upfronthosting.co.za> |
2011-02-11 12:44:10 | orsenthil | link | issue11082 messages |
2011-02-11 12:44:10 | orsenthil | create | |
|