Class
AngleSharpEncodingProvider
OfficeIMO.Html.Providers
Web charset aliases backed by AngleSharp and the .NET code-page provider.
Inheritance
- object
- AngleSharpEncodingProvider
Remarks
Initialization registers the .NET code-page provider process-wide, as the existing decoder did. Returned encodings are cloned by OfficeIMO before changing fallbacks.
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Property AngleSharpEncodingProvider.Instance
Constructors
public AngleSharpEncodingProvider() #Methods
public Encoding? ResolveLabel(string label) #Returns an encoding for a recognized HTML label, or null when unsupported.
Parameters
- label string
Returns
Encoding?public Encoding? ResolveMetaContent(string content) #Resolves a charset declaration in an HTML meta content value, or null when absent or unsupported.
Parameters
- content string
Returns
Encoding?Inherited Methods
Properties
public static AngleSharpEncodingProvider Instance { get; } #Shared charset provider.