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.

AngleSharp in Unity, 'CodePagesEncodingProvider'

See original GitHub issue

I’m trying to use this with Unity (2018.3.6f1) on the .NET 4.x runtime. I’m getting an error:

Assets\AngleSharp-master\src\AngleSharp\Browser\EncodingMetaHandler.cs(20,39): error CS0103: The name 'CodePagesEncodingProvider' does not exist in the current context

Seems that System.Text.Encoding doesn’t exist? I feel like I’m having issues with .NET versioning.

Can someone help? Thanks!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
PCoelhocommented, Apr 6, 2019

Ok, that was exactly it. It even works in Android! For the record here’s how I did it:

  1. Get the AngleSharp NuGet package from the VS NuGet Package manager.
  2. Build the solution (Build -> Build Solution)
  3. Copy the “netstandard2.0” folder into the unity Assets folder. You can find it in “[your project]\Packages\AngleSharp.0.11.0”. Version may vary.

Thanks for the help Florian 😃

0reactions
FlorianRapplcommented, Apr 25, 2019

Landed in devel.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AngleSharp
angel: The ultimate angle brackets parser library parsing HTML5, MathML, SVG and CSS to construct a DOM based on the official W3C specifications....
Read more >
AngleSharp - Documentation
AngleSharp is a .NET Standard library that can be used on many platforms. This includes, but is not limited to, .NET (Core /...
Read more >
AngleSharp NET Headless Browsing - YouTube
Announcing .NET Core 3.0: https://aka.ms/dotnetcore3 Ever wanted to know the internals of an evergreen web browser?
Read more >
Encoding.RegisterProvider(CodePagesEncodingProvider. ...
Now I can access the extra code pages using the Encoding.GetEncoding() method, however I still get the same list of encodings from Encoding....
Read more >
CodePagesEncodingProvider Class (System.Text)
Provides access to an encoding provider for code pages that otherwise are available only in the desktop .NET Framework.
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