You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have many zips encoded with GBK or GB1314, etc. When I use unpack(inputstream, target, charsetName..), the result is empty and there is exception thrown.
If I don't specify the charset, then it's saying it's malformed.
The text was updated successfully, but these errors were encountered:
So if you use byte[] bytes = ZipUtil.unpack(new File("/tmp/demo.zip"), "foo.txt", Charset.forName("yourCharset")); it works but when you open the InputStream yourself and call ZipUtil.unpack(InputStream is, File outputDir) it fails?
Do you open the InputStream with the correct encoding? Can you share the code that works and the code which doesn't? And if you feel this is a zt-zip issue can you provide with an archive to test with?
We have many zips encoded with GBK or GB1314, etc. When I use unpack(inputstream, target, charsetName..), the result is empty and there is exception thrown.
If I don't specify the charset, then it's saying it's malformed.
The text was updated successfully, but these errors were encountered: