Bug #51929 [Com]: Extracted a zip file that contains a folder named with Chinese characters
| From: | mikhail dot v dot gavrilov at gmail dot com | Date: | Mon, 11 Jun 2012 12:11:33 +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-171188@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: mikhail dot v dot gavrilov at gmail dot com
Reported by: kgo_yoi at hotmail dot com
Summary: Extracted a zip file that contains a folder named
with Chinese characters
Status: Assigned
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:
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)
Previous Comments:
------------------------------------------------------------------------
[2012-06-08 03:53:53] maxspeed40k at gmail dot com
windows 7 (32bit)
php 5.4
------------------------------------------------------------------------
[2011-08-24 05:36:52] chrodos at gmail dot com
I also confirm this bug in the Greek language. The problem is that it has severe implications in
popular opensource applications like moodle.
Please read related bug: http://tracker.moodle.org/browse/MDL-24928
------------------------------------------------------------------------
[2011-05-30 08:51:41] mikhail dot v dot gavrilov at gmail dot com
I also confirm this problem.
Workaround: Helps converting to your DOS encoding.
------------------------------------------------------------------------
[2011-02-18 14:05:12] pajoye@php.net
At some point the library will support UTF-8 (as zip specs allow that). But it is
not yet implemented.
------------------------------------------------------------------------
[2011-02-18 14:04:29] pajoye@php.net
the library does nothing but to take the names you give as inputs.
The problem is also visible when a zip archive contains entries namend using UTF-8
or other random encoding. These names are used to the filesystem APIs, which
expect string endonded using the active run time CP.
------------------------------------------------------------------------
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