-
I have this zip file: https://drive.google.com/file/d/1v6s5iOkfFEzKRH-yeyS0qqMYL7fxHOYs/view?usp=share_link It contain html and png files as following
However, when using
I'm not sure what cause this |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The filenames in the archive are encoded in UTF-8, but the language encoding flag that indicates such isn't set, so zip.js instead tries to decode the filenames as if they are encoded in CP437, resulting in gibberish. This problem was discussed in detail in #131. The easiest way to fix this is to set the |
Beta Was this translation helpful? Give feedback.
The filenames in the archive are encoded in UTF-8, but the language encoding flag that indicates such isn't set, so zip.js instead tries to decode the filenames as if they are encoded in CP437, resulting in gibberish. This problem was discussed in detail in #131.
The easiest way to fix this is to set the
filenameEncoding
option to"utf-8"
(table of all supported values). This tells zip.js to decode the filenames as UTF-8 even in the absence of the language encoding flag. For more control over how the filenames are decoded, you can use thedecodeText
option or read therawFilename
property.