By Katsumii-Oracle on Feb 05, 2013
In my previous post, I wrote about using 'jar' on Linux to create 'zip' file.
I can do same with 'tar.gz' but when I want to send this to someone, *.zip is handier.
But there's a known problem. 'jar' will use 'UTF-8' encoding but standard 'zip' command on Windows cannot handle UTF-8 filename.
So, one needs to use p7zip or other zip utilities or 'jar'.
For the other way around, Solaris 11 and Ubuntu 'unzip' has new options to handle old encodings.
It's "-O" and "-I".
unzip package didn't support codepage-based filenames, and a patch from altlinux was included
I think the original patch was created on 2004!
# Set default encoding for filenames inside DOS/Windows Zip archives