Every part of an e-mail message may have its own charset (although it's not recommended). E-mails composed with MailBee have the same charset value across the message (unless you manually specified different charsets of text parts using TextBodyPart.Charset property). If text parts of the message (originally composed with another program and being parsed with MailBee now) have different charsets, property will return charset of the last text part of this message.
For existing e-mail messages being parsed (rather than for new messages being composed)property value is not important for the developer because MailBee automatically converts the message content accordingly the charset information in the message and the application receives the already decoded content. In this case, property value has the informative feature only.
However, when composing a new message (with international characters), you should specify the charset using TextBodyPart.Charset property if you need different charset settings for different text parts.property in case if you don't want UTF-8 encoding. Or, in rare cases, you will use
Ifis not specified, MailBee will use the following properties to determine encoding for string-to-byte and byte-to-string conversions:
Setting TextBodyPart.Charset values for all text parts of the message. But if you specified TextBodyPart.Charset value for a certain text part AFTER had been set, that text part will retain the specified TextBodyPart.Charset in the resulting message (while will be used for other text parts of the message).property will overwrite
|If any characters of the message contents are not defined in the specified charset, they will be replaced with "?" characters.|