[New-bugs-announce] [issue29305] encoding to ascii in client.py
Babe Hardy
report at bugs.python.org
Wed Jan 18 03:41:01 EST 2017
New submission from Babe Hardy:
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
----------
components: Library (Lib)
messages: 285707
nosy: Babe Hardy
priority: normal
severity: normal
status: open
title: encoding to ascii in client.py
type: compile error
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29305>
_______________________________________
More information about the New-bugs-announce
mailing list