Dart.Mail Namespace > ImapSession Class : AutoUtf8 Property |
<DefaultValueAttribute()> Public Property AutoUtf8 As Boolean
Dim instance As ImapSession Dim value As Boolean instance.AutoUtf8 = value value = instance.AutoUtf8
[DefaultValue()] public bool AutoUtf8 {get; set;}
[DefaultValue()] public: __property bool get_AutoUtf8(); public: __property void set_AutoUtf8( bool value );
[DefaultValue()] public: property bool AutoUtf8 { bool get(); void set ( bool value); }
RFC 6855 specifies that UTF8 encoding can be used within quoted strings (breaking the IMAP 7-bit rule) if this option is enabled. Popular servers like Gmail support this capability, which is utilized for encoding and decoding UNICODE strings. This is useful for searching and listing mailboxes. When enabled, UTF8 encoding is used for mailbox names (instead of Imap.MailboxNameEncoding).
The user can determine what encoding if being used by checking the Imap.Connection.Encoding property. System.Text.Encoding.ASCII is used for normal 7-bit operation, and System.Text.Encoding.UTF8 is used when the "UTF8=ACCEPT" capability has been enabled and is in use.