DetectEncoding Method (String)

Html Agility Pack

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

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

Syntax

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

Parameters

path
Type: System..::..String
Path for the file containing the HTML document to detect. May not be null.

Return Value

The detected encoding.

See Also