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 Babe Hardy
Recipients Babe Hardy
Date 2017-01-18.08:41:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1484728861.39.0.489354661051.issue29305@psf.upfronthosting.co.za>
In-reply-to
Content
used urlopen('...{}'.format(v)).read() with v being a string
when v is of a non-ascii format:
>>UnicodeEncodeError: 'ascii' codec can't encode characters<<
in line 984 of putrequest

after changing
>>self._output(request.encode('ascii'))<<
into
>>self._output(request.encode('utf-8'))<<

my script worked again
History
Date User Action Args
2017-01-18 08:41:01Babe Hardysetrecipients: + Babe Hardy
2017-01-18 08:41:01Babe Hardysetmessageid: <1484728861.39.0.489354661051.issue29305@psf.upfronthosting.co.za>
2017-01-18 08:41:01Babe Hardylinkissue29305 messages
2017-01-18 08:41:00Babe Hardycreate