zipfile module: problems with filename having non ascii characters

Jeff Epler jepler at
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

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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <>

More information about the Python-list mailing list