[docs] [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>

More information about the docs mailing list