You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call sendDocument() with file which is already binary (mode="rb"), it tries to encode it once more. So if the file content is containing non-ascii byte, it faild with: UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
This is caused by here.
in inputfile.py line 90:
def_parse(self, form):
ifsys.version_info> (3,):
# on Python 3 form needs to be byte encodedencoded_form= []
foriteminform:
try:
encoded_form.append(item.encode())
exceptAttributeError:
encoded_form.append(item)
returnb'\r\n'.join(encoded_form)
return'\r\n'.join(form)
The text was updated successfully, but these errors were encountered:
When I call
sendDocument()
with file which is already binary (mode="rb"
), it tries to encode it once more. So if the file content is containing non-ascii byte, it faild with:UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
This is caused by here.
in inputfile.py line 90:
The text was updated successfully, but these errors were encountered: