Replies: 4 comments 10 replies
-
What's the filename encoding used in the zip file? You can inspect it with some software that can change that, for example BandiZip I'm using. |
Beta Was this translation helpful? Give feedback.
-
See if you need to explicitly configure this compression software to use UTF-8 file names. If this isn't possible or doesn't solve the issue, could you perhaps attach a small ZIP file example to this thread that is demonstrating the issue with For CJK and other characters not representable by the IBM 437 code page, the only suitable text encoding for file names defined by the ZIP format specification (and thus more or less universally supported) is UTF-8. I tend to suspect the compression software you used doesn't produce ZIP file entries conforming to the ZIP format spec when confronted with non-ASCII file names. If that's the case, it will always be hit-or-miss if these non-standard ZIP archives will be processed correctly by some software, entirely depending on which support or workarounds the used software provides for non-standard ZIP files. (Heck, i even remember like 15 years or so ago the then still popular WinZIP software and/or Windows' built-in ZIP archiver didn't manage with its default settings to correctly encode file names containing non-ASCII characters, even those in IBM 437, and used the system code page instead of IBM 437 or UTF-8 if i remember correctly.) |
Beta Was this translation helpful? Give feedback.
-
What program did you compress them with and what are the original file names? |
Beta Was this translation helpful? Give feedback.
-
Do NOT trust the console output. It might very well just be the console not being able to show CJK characters. Instead, set a break point on the |
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.
-
When I use the
System.IO.Compression
library to unzip a ZIP file that contains Chinese directories and files compressed by another compression software, the Chinese characters appear garbled. However, when I use theSharpCompress
library, it works correctly. How can the officialSystem.IO.Compression
library address this issue?Please note, I compressed the files using another compression software, and when I use the program to extract them, the Chinese characters appear garbled
https://www.bandisoft.com/bandizip/
https://yasuo.360.cn/
Neither of the two compression software programs above work.
Then, we compress a file using any compression software, like this.

@elgonzo @colejohnson66
Beta Was this translation helpful? Give feedback.
All reactions