StringConversionMode Enumeration |
Namespace: MailBee.Mime
Member name | Value | Description | |
---|---|---|---|
NoConversion | 0 | The strings will be returned as Unicode. This is normal behavior suitable for most applications. | |
KeepOriginalByteEncoding | 1 | The original encoding of the string data should be kept. | |
ConvertToWinByteEncoding | 2 | Convert the string data into Windows version of the original encoding. | |
ConvertToDestinationEncoding | 3 | Convert the string data into the specified DestinationEncoding. |
By default, all string properties of MailMessage and dependent objects (such as Attachment, MimePart, etc) return string values in Unicode. Most applications live fine with that.
However, if you are developing non-Unicode web application (i.e. it can use the charset different from UTF-8), you can use MailMessage.Parser.CharsetConverter.ConversionMode property to tell MailBee to return strings in another charset encoding.
The modes defined in this enumeration control if the message data will be returned as Unicode or will retain the same encoding it has in the message or will be converted using another encoding.