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

Zip filename encoding #257

Open
damien-biasotto opened this issue Jan 21, 2014 · 3 comments
Open

Zip filename encoding #257

damien-biasotto opened this issue Jan 21, 2014 · 3 comments
Assignees

Comments

@damien-biasotto
Copy link

What's wrong :

Get a zip archive with utf8 filename and exotic chars (éàçù) inside of it, when you extract the archive, filenames are a bit broken due to encoding issue. Even with mb_convert_encoding() on filename.

How to reproduce :

Generate a zip archive with exotic chars in its filename, add files in it (with also exotic chars on theirs filenames). Save it, then unzip it,
filenames are messed up.

What's expected :

filenames' of files should be identical before archive generation, and after extraction.

@l3l0
Copy link
Collaborator

l3l0 commented Jan 22, 2014

@damien-biasotto Thanks for report. I will try to reproduce it.

@real34
Copy link

real34 commented Feb 17, 2014

Any updates with this issue? @l3l0 could you reproduce it?

@real34
Copy link

real34 commented Mar 18, 2014

After searching a bit on the web it seems directly related to the zip extension. See the gist at https://gist.github.com/real34/9604201 for an illustration of the bug.

Since Gaufrette only acts as a wrapper oaround ZipArchive, what is your take on this? Other solutions have reimplemented Zip utils class, but I am not sure this is the way to go.

See further resources at:

... seems fixed in PECL zip 1.11.0 : http://pecl.php.net/package-changelog.php?package=zip but I still could not make it work.

Feel free to close this issue if you consider this is a PHP thing and must not be handled by Gaufrette.

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

4 participants