BracketPipe icon indicating copy to clipboard operation
BracketPipe copied to clipboard

iso-2022-cn is not a supported encoding name

Open TonyValenti opened this issue 4 years ago • 1 comments

I call this method:

Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);

Then when I try to convert certain text, I get this error:

System.ArgumentException: ''iso-2022-cn' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. (Parameter 'name')'

Why is that?

TonyValenti avatar Jun 02 '21 12:06 TonyValenti

See https://github.com/AngleSharp/AngleSharp/commit/24708a2038baf481cc96b635e95c21cbaa14c68d for an idea for an adjustment. The exception you're seeing is a caught one

jespersh avatar Aug 17 '23 13:08 jespersh