.zip file created by Java doesn't support Chinese(utf-8)

后端 未结 3 1760
一生所求
一生所求 2021-01-23 05:50

I want to create a .zip file using Java(jdk, ant.jar or commons-compress).

But if the ZipEntry\'s name contains non-English(eg. Chinese, Japanese), it will display unrea

3条回答
  •  甜味超标
    2021-01-23 06:51

    You have hit one of the Top 25 java bug.

    Good news is this is already resolved. Bad news it it is fixed only in JDK7. See this entry for details.

    Alternativlly, you can use Arcmexer (readonly).

提交回复
热议问题