See Also

Udp Class  | Udp Members

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

See Also Languages PowerTCP SSL Sockets for .NET

Charset Property

Dart.PowerTCP.SslSockets Namespace > Udp Class : Charset Property (Udp)

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

[Visual Basic]
<DescriptionAttribute("Gets or Sets a value that overrides the default system code page for string/byte[] conversions.")> <DefaultValueAttribute()> <CategoryAttribute("Behavior")> Public Property Charset As String
[C#]
[DescriptionAttribute("Gets or Sets a value that overrides the default system code page for string/byte[] conversions.")] [DefaultValueAttribute()] [CategoryAttribute("Behavior")] public string Charset {get; set;}
[C++]
[DescriptionAttribute("Gets or Sets a value that overrides the default system code page for string/byte[] conversions.")] [DefaultValueAttribute()] [CategoryAttribute("Behavior")] public: __property string* get_Charset(); public: __property void set_Charset(    string* value );
[C++/CLI]
[DescriptionAttribute("Gets or Sets a value that overrides the default system code page for string/byte[] conversions.")] [DefaultValueAttribute()] [CategoryAttribute("Behavior")] public: property String^ Charset {    String^ get();    void set (String^ value); }

Return Type

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

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Udp Class  | Udp Members


Send comments on this topic.

Documentation version 1.1.2.0.

© 2008 Dart Communications.  All rights reserved.