TnefMessageBodyEncoding Property

Get the text encoding of the content.

Definition

Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public Encoding? Encoding { get; }

Property Value

Encoding
The text encoding, or if it is not known.

Remarks

Gets the text encoding of the raw content returned by OpenRead.

The encoding of a Unicode body is UTF-16 (little endian), and the encoding of a String8 body is the encoding of the message's codepage.

The encoding of a Binary HTML body is the encoding of the message's InternetCodepage, if it has one; otherwise, it is and the encoding may only be determined from the HTML content itself. The encoding of a compressed RTF body is always .

See Also