|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesfix_zip_unicode (last revision 2011-02-23 17:02 UTC by asaf at lingnu dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-02-18 13:58 UTC] g dot faust at tarent dot de
[2011-02-18 14:04 UTC] pajoye@php.net
-Status: Open
+Status: Duplicate
[2011-02-18 14:04 UTC] pajoye@php.net
[2011-02-18 14:05 UTC] pajoye@php.net
-Status: Duplicate
+Status: Assigned
-Assigned To:
+Assigned To: pajoye
[2011-02-18 14:05 UTC] pajoye@php.net
[2011-05-30 08:51 UTC] mikhail dot v dot gavrilov at gmail dot com
[2011-08-24 05:36 UTC] chrodos at gmail dot com
[2012-06-08 03:53 UTC] maxspeed40k at gmail dot com
[2012-06-11 12:11 UTC] mikhail dot v dot gavrilov at gmail dot com
[2012-07-24 17:09 UTC] gazambuja at gmail dot com
[2013-01-08 07:46 UTC] oburlaca at gmail dot com
[2013-04-01 21:35 UTC] pajoye@php.net
[2013-04-01 21:35 UTC] pajoye@php.net
-Status: Assigned
+Status: Feedback
[2013-06-07 06:01 UTC] pajoye@php.net
-Status: Feedback
+Status: No Feedback
[2015-12-11 08:27 UTC] 350176528 at qq dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 11:00:02 2025 UTC |
Description: ------------ Extracted a zip file contains a folder named with Chinese characters, the files in the folder is no longer in it. e.g. I have 2 zips, the one named en.zip contains a folder named English en.zip |- English |- en.txt the other named zh.zip contains a folder named 中文 zh.zip |- 中文 |- zh.txt Then I use ZipArchive to extract them, Test script: --------------- <?php $zip = new ZipArchive; $zip->open('en.zip'); $zip->extractTo('.'); $zip->close(); $zip->open('zh.zip'); $zip->extractTo('.'); $zip->close(); Expected result: ---------------- There are 2 folders, 'English' and '中文', each folder contains a txt file. Actual result: -------------- The 'English' folder contains a txt file named en.txt; the '中文' folder is empty and zh.txt is out of it.