using java.util.zip.ZipOutputStream build in is nice, but It cannot handle the encoding of the file to download in Japanese.
ファイルは日本語になると出来上がったZIPファイルの中身に文字化けのままになちゃう。 Using [org.apache.tools.zip.ZipOutputStream] from apache ANT (all you need is the ant.jar) will solve the problem!
org.apache.tools.zip.ZipOutputStream zipOutputStream = new
org.apache.tools.zip.ZipOutputStream(newOutputStream);
//使うにしたがって、 AntのZipEntryも利用する
// Also don`t forget to use the ZipEntry From apache.tools
org.apache.tools.zip.ZipEntry zipEntry = new org.apache.tools.zip.ZipEntry(targetFile.getName());
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.