Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

AngleSharpEncodingProvider

OfficeIMO.Html.Providers

Namespace
OfficeIMO.Html.Providers
Assembly
OfficeIMO.Html.AngleSharp
Source revision
ba882f6b0d07 with working tree changes
Implements
IHtmlEncodingProvider
Modifiers
sealed

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

Constructors

public AngleSharpEncodingProvider() #

Methods

public Encoding? ResolveLabel(string label) #

Returns an encoding for a recognized HTML label, or null when unsupported.

Parameters

label string required

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 required

Returns

Encoding?

Properties

public static AngleSharpEncodingProvider Instance { get; } #

Shared charset provider.