erdomke / BracketPipe

BracketPipe is a .NET library for building parsing and processing piplines for web languages like HTML, CSS, Javscript, SVG, and MathML
MIT License
22 stars 10 forks source link

iso-2022-cn is not a supported encoding name #4

Open TonyValenti opened 3 years ago

TonyValenti commented 3 years ago

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?

jespersh commented 1 year ago

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