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

Improve encoding support #211

Merged
merged 2 commits into from
Mar 9, 2016
Merged

Conversation

dduponchel
Copy link
Collaborator

This pull request adds decodeFileName in load() and encodeFileName in generate(). These options allow to read / generate zip files with non-UTF-8 file names / comments (Windows Compressed Folders doesn't seem to support UTF-8 entries for example).

Fix #210

Some archive managers use the machine encoding to generate the file name and
comment. The user can recover the content of a file not encoded in UTF-8
but can't do anything for the file name. This new option adds the
ability to decode file names and comments with a custom algorithm.

See Stuk#210.
This option allows the user to generate a zip file with a custom encoding
for the entry file name / comment. See also "decodeFileName" in load().
Not using UTF-8 when generating a zip file is maybe asking for troubles but
some archive managers (Windows Compressed Folders for example) don't
support well unicode stuff.

See Stuk#210.
Stuk added a commit that referenced this pull request Mar 9, 2016
@Stuk Stuk merged commit 585812b into Stuk:master Mar 9, 2016
@dduponchel dduponchel deleted the improve_encoding_support branch March 11, 2016 16:33
@dduponchel dduponchel mentioned this pull request Mar 22, 2016
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

Successfully merging this pull request may close these issues.

Wrong names
2 participants