Unicode and Zipfile problems

Martin v. Löwis martin at v.loewis.de
Wed Nov 5 21:07:38 CET 2003


Thomas Heller <theller at python.net> writes:

> > zipfiles encode file names in code page 437.
> 
> So is this a bug in the zipfile module?

Yes. It should auto-encode Unicode strings as cp437.

For byte strings, there is not much it could do - the zipfile will
just contain mojibake if encoding of the byte string is not cp437.

Regards,
Martin




More information about the Python-list mailing list