TnefReaderCodepage Property

Get the codepage used to decode 8-bit strings.

Definition

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

Property Value

Int32
The codepage.

Remarks

Gets the codepage used to decode 8-bit strings.

The codepage is initially determined by DefaultCodepage and is updated when the reader reads a OemCodepage attribute with a nonzero value. If the stream does not specify an OemCodepage, the codepage is instead updated when the reader reads the message's InternetCodepage property, unless that property specifies a UTF-16 or UTF-32 codepage, as described in [MS-OXTNEF] section 2.3.3.2. Only 8-bit strings that are read after the codepage has been updated are decoded using the new codepage.

See Also