php-archive icon indicating copy to clipboard operation
php-archive copied to clipboard

Not working with UTF-8 file or directory name

Open g-rusev opened this issue 1 year ago • 0 comments

Hi,

I am trying to create a ZIP file, with files and folders, that contain UTF-8 filenames and directory names. ( for example, a file containing some cyrillic letters:

тестов_файл.txt

		$zip = new \splitbrain\PHPArchive\Zip();
		$zip->create('test.zip');
		$zip->addFile('D:/testdir/тестов_файл.txt');
		$zip->close();

The file in the zip is missing all the letters and corrupted: '_.txt'.

Other UTF-8 filenames other than Cyrillic also fails.

Tested with the latest version of the library on both Windows 10 22H2 and CloudLinux v.7

g-rusev avatar Apr 16 '24 07:04 g-rusev