Replies: 11 comments 5 replies
-
It looks like the filename is encoded in UTF-8 but the bit 11 of the "general purpose bit flag" is not set to 1 (see 4.4.4 here: https://pkware.cachefly.net/webdocs/APPNOTE/APPNOTE-6.3.9.TXT). That's why |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
please see my top post for filename decode!thanks |
Beta Was this translation helpful? Give feedback.
-
and then plase delete filenameEncoding default value "gbk" |
Beta Was this translation helpful? Give feedback.
-
Check the encoding of your |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
The original issue in this discussion is fixed in the version v2.6.13 I just published. Please create a new discussion for each different type of issue/suggestion. It shouldn't take minutes to decompress 100 MB. On my machine, it takes usually less than 10 seconds. I don't understand the optimization related to the Blob URI used by web workers you suggest. The line 117 is executed one time only. |
Beta Was this translation helpful? Give feedback.
-
文件智能编码问题 :fileEncoding 实际文件:cp437 [148] let dd = (e,s)=>new TextDecode(e).decode(new Uint8Array(s)); ee(dd("utf8",[148])); 基础编码,长度3 实际文件:gbk [239,210] 我 ee(dd("utf8",[239,210]));基础编码 長度6 所以当"isUTF8file:false"时 判断utf8 解码长度并且编码后长度一致,那么它还是utf8, 尝试"cp437”解码,如果长度跟utf8 一致,那么它肯定不是cp438, 最后选择 用户自己的指定编码(gbk), |
Beta Was this translation helpful? Give feedback.
-
这是我的想法,我并不熟悉node,我用手机上的写的,若有错误自行修正 f is option.filenameEncoding let u = "utf8", if(f&&u!=f){ if(cp437len.length<utf8len.length)retrun cp437text; return "unknown language file"; } } |
Beta Was this translation helpful? Give feedback.
-
请参考我上面的函数,这个用来解码文件名应该非常有用! |
Beta Was this translation helpful? Give feedback.
-
我稍微修正一下 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
can you see auto decode name
zip.js line 3068
const commentEncoding = getOptionValue$1(zipReader, options, "commentEncoding");
Beta Was this translation helpful? Give feedback.
All reactions