Commit a2346a3c authored by Emmy Vouriot's avatar Emmy Vouriot Committed by Jérome Perrin

bytes ti str to read non ascii characters WIP

parent c71c137c
...@@ -57,6 +57,7 @@ except ImportError: ...@@ -57,6 +57,7 @@ except ImportError:
if six.PY2: if six.PY2:
quoted_file_name = quote(file_name.encode('utf-8')) quoted_file_name = quote(file_name.encode('utf-8'))
else: else:
encoded_file_name = encoded_file_name.decode('us-ascii')
quoted_file_name = quote(file_name) quoted_file_name = quote(file_name)
return '{disposition}; '\ return '{disposition}; '\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment