DetectEncodingHtml Method

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Detects the encoding of an HTML text.

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

Syntax

C#
public Encoding DetectEncodingHtml(
	string html
)
Visual Basic
Public Function DetectEncodingHtml ( _
	html As String _
) As Encoding
Visual C++
public:
Encoding^ DetectEncodingHtml(
	String^ html
)

Parameters

html
Type: System..::..String
The input html text. May not be null.

Return Value

The detected encoding.

See Also