question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Replace "iso-22-cn" encoding with substitute

See original GitHub issue

I got an encoding error running any of the contexts: var doc = await BrowsingContext.New().OpenAsync("https://stackoverflow.com/"); My package version has been updated to the preview version,I don’t know if this is a bug or my problem. QQ图片20200129004916

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
FlorianRapplcommented, Jan 29, 2020

Try using “x-cp50227” rather than “iso-22-cn”

can be done within AngleSharp as a fallback. We’ll roll it out in the next 0.14 preview.

0reactions
FlorianRapplcommented, May 29, 2023

Hi @fangfsz the error message is also telling you what to do; register the encoding. Not sure what you want AngleSharp to do here - if the encoding is missing the website would not be retrieved as it should, therefore throwing an exception here is critical. You can register the encoding either with the original encoding or some available fallback.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Replace character that is not recognised by encoding
Replace character that is not recognised by encoding · You can put a try at the bit that translates it, and while loop...
Read more >
Encode text or substitute - Ask for Help
Hi Gliders, I was wondering if any of you has an idea how to encode text or alternatively use something like the substitute...
Read more >
Replacing the feature variables with encoded variables
I have several nominal variables which I've encoded using the LabelEncoder() function. Now I want to replace the encoded values in the place ......
Read more >
fix buffer invalid UTF-8 encoding characters by query/replace
I want to do query/replace all invalid UTF-8 encoding characters in buffer ... for replacement when it encounters something it cannot parse.
Read more >
CodeLite replacing accent by special characters
I just stumbled upon this problem with CodeLite. Go to a command prompt, and type chcp with no parameters. It will report your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found