Skip to main content

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.v24.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

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:

Object Type Path to IgnoreMetaCharset
RichEditDocumentImportOptions
.Html .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