Reputation: 1973
When trying to extract a zip file that contains Hebrew file name, it removes the Hebrew file name from the file, or does not extract it at all.
My code:
<?php
zipExtract('avi.zip','folder');
function zipExtract($src, $dest)
{
$zip = new ZipArchive();
if ($zip->open($src) === true) {
$zip->extractTo($dest);
$zip->close();
}
return false;
}
?>
The zip file is here - it was created on a Windows PC using Winrar.
Any ideas?
Upvotes: 0
Views: 196
Reputation: 1470
It depends on what machine the ZIP
file has been created. From the ZIP file you've attached I can only see that it hasn't been UTF8
encoded. Maybe you should check out 7-zip and try to create your ZIP file with that.
Upvotes: 1