Class EncodingMetaHandler
- Namespace
- AngleSharp.Browser
- Assembly
- AngleSharp.dll
Implementation of an encoding meta handler.
public class EncodingMetaHandler : IMetaHandler
- Inheritance
-
EncodingMetaHandler
- Implements
- Inherited Members
- Extension Methods
Constructors
EncodingMetaHandler()
Create a new instance of the EncodingMetaHandler
public EncodingMetaHandler()
Remarks
This will initialize additional encoding providers to correctly support all encodings
Methods
GetEncoding(IHtmlMetaElement)
Gets the associated encoding, if any.
protected virtual Encoding? GetEncoding(IHtmlMetaElement element)
Parameters
element
IHtmlMetaElementThe element to get the encoding from.
Returns
- Encoding
The discovered encoding or null.