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);
}
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);
}