I use SharpZipLib to compress file and user got this error:
1 is not a supported code page
I found here that problem is in regional settings and solution is in
"replace the line of code that fetches the code page from the Thread's OEMCodePage and instead hardcode the suitable value."
But I didn't find any code example to solve this problem.
Line below hardcodes code page to avoid getting it from system regional settings:
ICSharpCode.SharpZipLib.Zip.ZipConstants.DefaultCodePage = 437;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With