java带的标准zip工具对中文处理先天不足,apache的ant项目中带了一个zip工具,可以用来处理中文文件名,在windows下不用做特别处理,在Unix系统下如果有问题,注意添加下面一句:

ZipOutputStream zipOut = new ZipOutputStream(new BufferedOutputStream(response.getOutputStream()));

zipOut.setEncoding("GBK"); 

相关文章:

  • 2021-06-14
  • 2022-12-23
  • 2022-02-10
  • 2021-11-10
  • 2021-06-30
  • 2021-09-25
  • 2021-12-16
  • 2022-12-23
猜你喜欢
  • 2021-04-07
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-12-14
相关资源
相似解决方案