Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

HtmlDocumentImporterOptions.AutoDetectEncoding Property

Gets or sets whether the auto-detection of the charset of the html file is enabled.

Namespace: DevExpress.XtraRichEdit.Import

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

[DefaultValue(true)]
public bool AutoDetectEncoding { get; set; }

Property Value

Type Default Description
Boolean **true**

true to enable the auto-detect option; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to AutoDetectEncoding
WinForms Controls RichTextEditDocumentImportOptions
.Mht.AutoDetectEncoding
Office File API RichEditDocumentImportOptions
.Mht.AutoDetectEncoding

Remarks

If the AutoDetectEncoding option is switched on, an explicit encoding specification, which can be set using the HtmlDocumentImporterOptions.Encoding property or by the <meta> tag of the loaded HTML page, is not required. Instead, the correct encoding is determined automatically and the document is loaded using the detected encoding.

See Also