STINNER Victor <victor.stin...@haypocalc.com> added the comment:

Oh, I see that zipfile.py uses the following code to choose the 
filename encoding:
            if flags & 0x800:
                # UTF-8 file names extension
                filename = filename.decode('utf-8')
            else:
                # Historical ZIP filename encoding
                filename = filename.decode('cp437')

So I'm maybe wrong: the encoding is known using a flag?

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4621>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to