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?

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.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact