I'm creating a ZIP file using java.util.zip.ZipOutputStream. If the file names of these files are in any other language other than English (e.g. Chinese) they get distorted. when I extract the ZIP file using WinZip. How do I preserve the file names?
Created May 8, 2012
Tim Rohaly WinZip, and the ZIP file format in particular, only supports
ASCII characters for file names. The Java class ZipOutputStream
can't give you a capabillity which is not supported by the
underlying file format. So, you are stuck using ASCII.