Dart.Mail Namespace > Textpart Class : Content Property |
When set, if Encoding is ASCII and the new value contains a non-ASCII character, then Encoding is set to Headers.Encoding and Resource.TransferEncoding is set to TransferEncoding.QuotedPrintable. This default behavior can be overridden by setting these properties explicitly.
When read, if Encoding is ASCII and an 8-bit character is found, then the part body is searched for "charset=". If a valid charset is found then Encoding is updated and used for decoding, otherwise Encoding.Default is used. This behavior can be overridden by setting Encoding explicitly.
Content must be null when decoding (the encoding Stream is being written to), and not null when encoding (the encoding Stream is being read from).