i have the followed code
$zip = new ZipArchive;
$res = $zip->open('tmp/articles.zip');
if ($res === TRUE) {
$zip->extractTo('tmp/');
$zip->close();
}
It works fine for archives with english filenames, but if i made archieve with russian characters, i have unreadable filenames. What should I do?
UPD: It doesn’t work correctly when i use “unzip” from bash too.
Look at this code:
This code prints normal filenames.
So, WinRar uses old ms-dos charset ‘cp866’ for Cyrillic.
Hope you can change this code to create rename algorithm 🙂