DetectEncodingAndLoad Method (String, Boolean)

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Detects the encoding of an HTML document from a file first, and then loads the file.

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

Syntax

C#
public void DetectEncodingAndLoad(
	string path,
	bool detectEncoding
)
Visual Basic
Public Sub DetectEncodingAndLoad ( _
	path As String, _
	detectEncoding As Boolean _
)
Visual C++
public:
void DetectEncodingAndLoad(
	String^ path, 
	bool detectEncoding
)

Parameters

path
Type: System..::..String
The complete file path to be read. May not be null.
detectEncoding
Type: System..::..Boolean
true to detect encoding, false otherwise.

See Also