Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with UTF-8 file or directory name #36

Open
g-rusev opened this issue Apr 16, 2024 · 0 comments
Open

Not working with UTF-8 file or directory name #36

g-rusev opened this issue Apr 16, 2024 · 0 comments

Comments

@g-rusev
Copy link

g-rusev commented Apr 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant