Skip to content

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

@g-rusev

Description

@g-rusev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions