我使用 SharpZipLib 压缩文件,但用户收到此错误:
1 is not a supported code page
我找到了 here该问题在区域设置中,解决方案在
"replace the line of code that fetches the code page from the Thread's OEMCodePage and instead hardcode the suitable value."
但是我没有找到任何代码示例来解决这个问题。
最佳答案
硬编码代码页下方的行以避免从系统区域设置中获取它:
ICSharpCode.SharpZipLib.Zip.ZipConstants.DefaultCodePage = 437;
关于c# - SharpZipLib:1 不是受支持的代码页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46950386/