|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesphp-5.3.3-ZIP-UTF8.patch (last revision 2012-02-19 15:47 UTC by asaf at hadasa-oss dot net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-02-18 14:02 UTC] pajoye@php.net
-Status: Open
+Status: Duplicate
[2011-02-18 14:02 UTC] pajoye@php.net
[2011-05-30 08:49 UTC] mikhail dot v dot gavrilov at gmail dot com
[2011-06-10 23:27 UTC] killerloin at yahoo dot com
[2011-09-23 11:14 UTC] robert at softcom dot no
[2011-12-01 13:49 UTC] nadavkav at gmail dot com
[2013-04-24 17:18 UTC] animelp at yahoo dot com dot ar
[2013-04-24 18:43 UTC] pajoye@php.net
[2013-11-11 08:02 UTC] domnulnopcea at gmail dot com
[2013-12-16 00:14 UTC] danhab2000 at yahoo dot com
[2013-12-16 13:30 UTC] danhab2000 at yahoo dot com
[2013-12-16 13:58 UTC] pajoye@php.net
[2015-05-19 07:22 UTC] allan dot mascarenhas1987 at gmail dot com
[2015-05-19 09:27 UTC] requinix@php.net
[2015-05-19 11:44 UTC] allan dot mascarenhas1987 at gmail dot com
[2015-11-25 12:51 UTC] 1710ef4e at opayq dot com
[2016-12-27 07:55 UTC] 498936940 at qq dot com
[2017-01-06 02:19 UTC] 498936940 at qq dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 07:00:01 2025 UTC |
Description: ------------ when creating zip archive with non-english filenames, the filenames are not encoded correctly, upon extraction you get them like ???_???.txt. (tested with various unzipping software on windows/linux) a suggested workaround, e.g: $zip->addFile($file_data['path'], iconv("UTF-8","CP852",$file_name)); doesn't help Test script: --------------- <?php $zip = new ZipArchive(); if ($zip->open('/tmp/test.zip', ZIPARCHIVE::CREATE) === TRUE) { $zip->addFile('/tmp/file.txt', 'קובץ.txt'); $zip->close(); echo "done"; } else { echo "failed"; } ?> Expected result: ---------------- create a zip file which can be extracted reproducing the original file names. Actual result: -------------- non english file names comes out corrupted, e.g: ???_???.txt