Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Unicode Path Extra Field #3

Closed
random-ua opened this issue Sep 13, 2010 · 1 comment
Closed

Support Unicode Path Extra Field #3

random-ua opened this issue Sep 13, 2010 · 1 comment

Comments

@random-ua
Copy link

Different Zip software expects filenames with non-ASCII characters to be encoded in different charsets. For example to make files with cyrillic filenames visible in Windows Explorer ("compressed folders") I have to encode them into cp866. But that makes them unreadable by other archivers like 7-Zip and Info-ZIP etc. that expects windows-1251 charset (or Unicode Field, see below) to be used.

Solution was proposed by Info-ZIP developers: it allows to specify filename in Unicode (UTF-8) in EXTRA header field. This field called Unicode Path Extra Field (0x7075) in .ZIP File Format Specification(http://www.pkware.com/documents/casestudies/APPNOTE.TXT)
Many archivers (like two mentioned above) supports this feature. It's also used by GMail in "download all attachments" to encode attachments with non-ASCII names. So such file names specified twice: first in regular header field in some 8-bit charset (for old software), second - in extra field.

It would be great if mod_zip could support Unicode Paths.

@evanmiller
Copy link
Owner

Support added here:

667da70

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants