[issue27344] zipfile *does* support utf-8 filenames
Daniel Holth
report at bugs.python.org
Thu Jun 23 12:08:32 EDT 2016
Daniel Holth added the comment:
The documentation should read
The ZIP file format supports Unicode filenames. If you have unicode filenames, zipfile will encode them to and from utf-8 internally, but if you pass bytes filenames to write() then they will be stored without a specified encoding.
Even though the format itself supports Unicode, historically Windows' built-in ZIP utility has interpreted all ZIP filenames as CP437 also known as DOS Latin. There is a fix from Microsoft for Windows 7 available here: https://support.microsoft.com/en-us/kb/2704299
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27344>
_______________________________________
More information about the Python-bugs-list
mailing list