The encoding of the filenames (inside a zip file) is not properly detected
A free file archiver for extremely high compression
Brought to you by:
ipavlov
The encoding of the filenames (inside a zip file) is not properly detected in some cases. For example: if someone creates a zip file using Zip (from Info-Zip) in Windows Xp, containing a file named "naïve.text":
zip naïve naïve.text
and copies that file to a Linux machine:
1) If he executes there
unzip -l naïve.zip
it shows
[...] naïve.text
2) However, if he executes there
7z l naïve.zip
it shows
[...] nave.text
Thanks for all!
There are more tests:
If someone uses 7-Zip 9.34 alpha in Windows to pack two files (named "sample.txt" and "ñóçà.txt" (using Spanish and French characters)) into a file named "file.zip", then he goes to Linux (e.g. Ubuntu 14.04) and executes
then he sees:
And if he executes
then he sees:
It's interesting that "двЗЕ" seems to be made by characters from the Russian alphabet, as Igor Pavlov is Russian, maybe this gives some hints.
Thank you for 7-Zip!
That problem (that can be seen in Linux using Ark, Zip and similar programs to open zip files) doesn't happen if in Windows it's used:
- Zip (from Info-Zip).
or
- Total Commander 8.01, although with the "Store all names containing non-English in extra field" setting.
To set that, I went to "Configuration > Options > Packer > Zip packer" and, in the right part, to the "Additional Settings" section, then to "Pack Unicode names" and there I selected "Store all names containing non-English in extra field."
Thank you for 7-Zip!