PowerTCP Mail for .NET
AllowUtf8Encoding Property
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > MailHeader Class : AllowUtf8Encoding Property




Gets or sets a flag that controls the use of UTF-8 encoding in the mail header.

Syntax

Visual Basic (Declaration) 
Public Property AllowUtf8Encoding As Boolean
Visual Basic (Usage)Copy Code
Dim instance As MailHeader
Dim value As Boolean
 
instance.AllowUtf8Encoding = value
 
value = instance.AllowUtf8Encoding
C# 
public bool AllowUtf8Encoding {get; set;}
Managed Extensions for C++ 
public: __property bool get_AllowUtf8Encoding();
public: __property void set_AllowUtf8Encoding( 
   bool value
);
C++/CLI 
public:
property bool AllowUtf8Encoding {
   bool get();
   void set (    bool value);
}

Property Value

Set to true if UTF-8 should be used if the default system encoding fails. Defaults to true.

Remarks

If set to true, and any header line fails to encode using the default system encoding, then UTF-8 encoding is employed. If set to false, then '?' characters are shown where header characters fail to encode and the MailHeader.EncodingError property returns true.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.