DeclaredEncoding Property

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Gets the document's declared encoding. Declared encoding is determined using the meta http-equiv="content-type" content="text/html;charset=XXXXX" html node.

Namespace: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
public Encoding DeclaredEncoding { get; }
Visual Basic
Public ReadOnly Property DeclaredEncoding As Encoding
	Get
Visual C++
public:
property Encoding^ DeclaredEncoding {
	Encoding^ get ();
}

See Also