Skip to content

Cannot solve the problem of password in Chinese #282

@guyoua

Description

@guyoua

When encrypting, set the Chinese password, and it will always prompt the password error when decrypting. I tried to convert the password into other codes, but also always prompt the password error,The version used is zip4j2.6.1。The unzip password is 你好 。Below is my code and zip file
测试.zip

@test
public void testZip4j() throws Exception {
String zipFile ="F:\a\a\测试.zip";
String destDir ="F:\a\a\";
String password = "你好";
ZipFile zip = new ZipFile(zipFile, password.toCharArray());
zip.extractAll(destDir);
}

Metadata

Metadata

Labels

bugSomething isn't workingresolved

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions