Encoding GetEncoding() throws an exception
ASAPTom99 opened this issue · 0 comments
ASAPTom99 commented
Following throws an exception:
private static Encoding GetEncoding()
{
return Encoding.GetEncoding(1252);
}
Corrected as follows:
private static Encoding GetEncoding()
{
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
return Encoding.GetEncoding(1252);
}