I am using the "PhpConcept Library - Zip Module 2.8.2" (http://www.phpconcept.net/pclzip/), also called pclzip to create a zip file. I am running XAMPP on Windows 8.1.
I am able to create an ok zip-file content-wise. However, file and foldernames with swedish characters (åäö) gets messed up inside the zip-file.
Usage (zipping a folder):
require_once('pclzip.lib.php');
$archive = new PclZip('archive.zip');
if ($archive->add('filestobezipped/') == 0) {
die('Error : '.$archive->errorInfo(true));
}
I guess there is some character encoding issues. But how should this be solved? The PclZip library User Guide is quite hard to understand. The zip-format uses CP437 and UTF-8. My php is using ISO8859-1.