Bug #51929 [Com]: Extracted a zip file that contains a folder named with Chinese characters
| From: | 350176528 at qq dot com | Date: | Fri, 11 Dec 2015 08:28:00 +0000 |
| Subject: | Bug #51929 [Com]: Extracted a zip file that contains a folder named with Chinese characters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-197783@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=51929&edit=1
ID: 51929
Comment by: 350176528 at qq dot com
Reported by: kgo_yoi at hotmail dot com
Summary: Extracted a zip file that contains a folder named
with Chinese characters
Status: No Feedback
Type: Bug
Package: Zip Related
Operating System: Windows XP Simplified Chinese
PHP Version: 5.2.13
Assigned To: pajoye
Block user comment: N
Private report: N
New Comment:
hi pajoye, I've tried your code from https://github.com/pierrejoye/php_zip
then I run
phpize
./configure
make
make install
and then I got a new zip.so
but the problem still exists;
$zip->addFile('/some/path/file','䏿å');
not works. and
$zip->addFile('/some/path/file',iconv("UTF-8","CP437//IGNORE//TRANSLIT",'䏿å'));
not works either.
my php version is 5.5.9 and os is ubuntu14.04
Previous Comments:
------------------------------------------------------------------------
[2013-04-01 21:35:45] pajoye@php.net
Please try using master at https://github.com/pierrejoye/php_zip
UTF-8 support for the archive name entries have been added.
------------------------------------------------------------------------
[2013-01-08 07:46:05] oburlaca at gmail dot com
Confirming that extracting archive with UTF8 filenames doesn't work
PHP 5.4.10
CentOS 6.3
------------------------------------------------------------------------
[2012-07-24 17:09:52] gazambuja at gmail dot com
Some news about this bug?
Also affect extracting zip files with non-english filename encode.
------------------------------------------------------------------------
[2012-06-11 12:11:33] mikhail dot v dot gavrilov at gmail dot com
I think this is not ZipArchive problem, it is problem zip archive format which not stored source
code page, but extracting software interprets the code page in different ways depending on the
platform (Windows uses DOS encoding ex. Cyrillic for 866, Linux uses UTF-8)
------------------------------------------------------------------------
[2012-06-08 03:53:53] maxspeed40k at gmail dot com
windows 7 (32bit)
php 5.4
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=51929
--
Edit this bug report at https://bugs.php.net/bug.php?id=51929&edit=1