Java动态生成压缩包里的中文路径问题 为了避免出现乱码,把ZipEntry和ZipOutputStream这个两个类改为使用ant.jar包中的类。
ZipOutputStream zos = new ZipOutputStream(response.getOutputStream());zos.setEncodeing("gbk");...zos.putNextEntry(new ZipEntry("中文\\a.zip"));...