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




Gets and sets the character set used for string/byte array conversions.

Syntax

Visual Basic (Declaration) 
Public Property Charset As String
Visual Basic (Usage)Copy Code
Dim instance As EnhancedStream
Dim value As String
 
instance.Charset = value
 
value = instance.Charset
C# 
public string Charset {get; set;}
Managed Extensions for C++ 
public: __property string* get_Charset();
public: __property void set_Charset( 
   string* value
);
C++/CLI 
public:
property String^ Charset {
   String^ get();
   void set (    String^ value);
}

Property Value

A string representing the character set used.

Remarks

This value defaults to the language used on the runtime machine (accessible through System.Text.Encoding.Default.BodyName). Set this property to the desired character set string to override this behavior. An example charset for Kanji is "ISO-2022-JP", while Latin-1 is "ISO-8859-1". "UTF-8" will always encode unicode strings, but not all mail readers support decoding this character set.

When communicating with clients from other countries set this property based on the standard string defined for the language intended. This enables the International client to be able to properly decode the message.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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