PowerTCP Mail for .NET
Encoding Property (Textpart)




The encoding to be used for text.
Syntax
Public Property Encoding As Encoding
Dim instance As Textpart
Dim value As Encoding
 
instance.Encoding = value
 
value = instance.Encoding
public Encoding Encoding {get; set;}
public: __property Encoding* get_Encoding();
public: __property void set_Encoding( 
   Encoding* value
);
public:
property Encoding^ Encoding {
   Encoding^ get();
   void set (    Encoding^ value);
}
Remarks

ContentType.CharSet maps to System.Text.Encoding.WebName. If CharSet is not set, System.Text.Encoding.ASCII is used unless 8-bit Content is found, in which case Part.EncodingMap["default"] is used for encoding. Consider using System.Text.Encoding.UTF8 if full Unicode support is desired.

See EncodingMap for help with decoding using undefined charset values. Unrecognized charset strings map to Part.EncodingMap["default"] and are reported using Part.DecodingExceptions.

See Also

Reference

Textpart Class
Textpart Members


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic