Filename character encoding with the zip plugin
Posted: Wed Feb 03, 2021 2:37 pm
When you create archives with zip.hwp (zip.AddFile/NewName, for instance), it seems to accept only filenames in UTF-8 encoding, for example, when using umlauts. This is problematic, because Amiga/MorphOS programs can't show them correctly and you get typical UTF-8 garbage when listing or unpacking files. The archives do work on Windows though.
For comparison, I tried to pack an archive with the commandline zip command on MorphOS, and then the filenames were readable on MorphOS (by unzip, xad, etc), but the names were garbage on Windows.
But then.. the interesting part is that when I created a new zip archive with umlauted filenames on Windows, names were shown correctly on both Windows and MorphOS!
Sooo, does anyone have any idea what character set Windows is using when it creates the files? Could that be used with the zip.hwp too? Any other solutions/suggestions to get more universal archives? Could the character set be definable on Hollywood?
For comparison, I tried to pack an archive with the commandline zip command on MorphOS, and then the filenames were readable on MorphOS (by unzip, xad, etc), but the names were garbage on Windows.
But then.. the interesting part is that when I created a new zip archive with umlauted filenames on Windows, names were shown correctly on both Windows and MorphOS!
Sooo, does anyone have any idea what character set Windows is using when it creates the files? Could that be used with the zip.hwp too? Any other solutions/suggestions to get more universal archives? Could the character set be definable on Hollywood?