I have a directory with a name that contains Japanese characters, and I need to use zip utils in java.util.zip to write it to a zip file. Writing a zip file is successful, but when I open the resulting zip file using the built-in Windows or 7-Zip compressed file utility, the directory with Japanese characters in the name appears as a bunch of garbage characters. I have a Japanese / East Asian language pack installed on my system - I can create directories with Japanese names, so this is not a problem.
Interestingly, if I write a separate script to read the resulting zip file using java.util.zip, the directory name is correct, and I can extract the contents of the zip into the corresponding directories with Japanese characters. But I can’t do this using the commercial zip tools I tried, which our clients will undoubtedly do.
Any ideas on what causes this problem, and how can I get around it?
I know about this error , but I still need a workaround for this case.
source
share