Tnef MessageCodepage Property
Get the codepage of the message.
Definition
Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The codepage.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public int Codepage { get; }Property Value
Int32The codepage.
Remarks
Gets the codepage that was used to decode the message's 8-bit strings.
As described in [MS-OXTNEF] section 2.3.3.2, this is the codepage specified by a nonzero OemCodepage attribute or, if the TNEF stream did not contain one, the codepage specified by the message's InternetCodepage property (unless it specifies a UTF-16 or UTF-32 codepage) or, failing that, DefaultCodepage.
When the codepage comes from the InternetCodepage property, 8-bit strings that preceded that property in the TNEF stream were decoded using DefaultCodepage. The 8-bit message bodies always use this codepage.