[Python-Dev] non-US zip archives support in zipfile.py

Steven D'Aprano steve at pearwood.info
Tue Oct 15 14:02:10 CEST 2013


On Tue, Oct 15, 2013 at 10:20:03AM +0200, Victor Stinner wrote:
> Both issues are related and should be fixed in the *same* commit.
> Python should provide an option to encode explicitly filenames to
> UTF-8. Or maybe better: encode to UTF-8 by default, with an option to
> encode to cp437, and another to encode to an arbitrary encoding.

Why single out cp437 for special treatment? Surely it's enough to use 
UTF-8 by default, or specify an arbitrary encoding.


-- 
Steven


More information about the Python-Dev mailing list