Click or drag to resize

FormatOptionsAllowMixedHeaderCharsets Property

Get or set whether the formatter should allow mixed charsets in the headers.

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 3.0.0
public bool AllowMixedHeaderCharsets { get; set; }

Property Value

Type: Boolean
true if the formatter should be allowed to use us-ascii and/or iso-8859-1 when encoding headers; otherwise, false.

When this option is enabled, the MIME formatter will try to use us-ascii and/or iso-8859-1 to encode headers when appropriate rather than being forced to use the specified charset for all encoded-word tokens in order to maximize readability.

Unfortunately, mail clients like Outlook and Thunderbird do not treat encoded-word tokens individually and assume that all tokens are encoded using the charset declared in the first encoded-word token despite the specification explicitly stating that each encoded-word token should be treated independently.

The Thunderbird bug can be tracked at

See Also