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

HtmlDocumentImporterOptions.IgnoreMetaCharset Property

Gets or sets whether the character encoding specified in the META element should be ignored.

Namespace: DevExpress.XtraRichEdit.Import

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

Declaration

[DefaultValue(false)]
public bool IgnoreMetaCharset { get; set; }

Property Value

Type Default Description
Boolean **false**

true to ignore character encoding in the META element; otherwise, false.

Property Paths

You can access this nested property as listed below:

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

Remarks

You can specify encoding for HTML import explicitly via the HtmlDocumentImporterOptions.Encoding property.

When the HTML document is imported from the stream, the encoding of the stream can be different from the encoding specified in the META tag. If this is the case, you should ignore the META declaration, to display text correctly.

See Also