zipfile module: problems with filename having non ascii characters

Jeff Epler jepler at unpythonic.net
Sat Aug 21 23:13:01 CEST 2004


Zip files don't have a way to define the encoding of filenames---names
are just byte strings, and different utilities may interpret them in
different ways.  The only thing that seems to be defined is that '/' is
the directory separator, and possibly that the filename can't contain
'\0'.

You can probably find the encoding that winzip uses with a little
trial-and-error, and convert your filenames in your encoding to
filenames in that encoding.  This may depend on the language or region
of the installed Windows, though.

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20040821/d9b2dfcd/attachment.sig>


More information about the Python-list mailing list