Closed TuTAH1 closed 2 years ago
IsUnicodeText = true gives same result as IsUnicodeText = false
This is because it's only used for creating entries, not when reading.
No data is available for encoding 866. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.
This is because .NET only includes a very limited set of supported encodings. To add support for all the encodings present in .NET Framework, call this:
using System.Text;
// ...
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
In fact, if that is called, FastZip
should automatically pick that encoding (as your OS is set to it).
Actually, I am going to reopen this, because the automatic encoding only works if
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
is called before any instance of ZipCodec
has been accessed, and only on .NET FW. For .NET Core / 5+ it still only returns UTF-8. This should be fixed in an upcoming release.
Steps to reproduce
Expected behavior
files and folders have same name as when they was packed
Actual behavior
files and folders name is like ����� �ணࠬ��
Version of SharpZipLib
1.4.0
Obtained from (only keep the relevant lines)
Tryed actions:
(instead of just
IsUnicodeText = true
gives same result asIsUnicodeText = false