zip4j icon indicating copy to clipboard operation
zip4j copied to clipboard

Default Charset Inconsistent behavior bug

Open gxchenjingli opened this issue 1 year ago • 0 comments
trafficstars

in calss net.lingala.zip4j.ZipFile

this function

private Zip4jConfig buildConfig() {
    return new Zip4jConfig(charset, bufferSize, useUtf8CharsetForPasswords);
}

change to

private Zip4jConfig buildConfig() {
    return new Zip4jConfig(charset == null ? CHARSET_UTF_8 : charset , bufferSize, useUtf8CharsetForPasswords);
}

or

private Charset charset = null;

change to

private Charset charset = CHARSET_UTF_8;

gxchenjingli avatar May 29 '24 09:05 gxchenjingli