Add non-ASCII file names to zip in Java

后端 未结 7 1358
时光说笑
时光说笑 2020-12-14 08:38

What is the best way to add non-ASCII file names to a zip file using Java, in such a way that the files can be properly re

7条回答
  •  借酒劲吻你
    2020-12-14 09:22

    Non-ASCII file names are not reliable across ZIP implementations and are best avoided. There is no provision for storing a charset setting in ZIP files; clients tend to guess with 'the current system codepage', which is unlikely to be what you want. Many combinations of client and codepage can result in inaccessible files.

    Sorry!

提交回复
热议问题