SocketTools .NET Edition

MailMessage.MimeCharacterSet Enumeration

Specifies the character sets recognized by the MailMessage class.

[Visual Basic]
Public Enum MailMessage.MimeCharacterSet
[C#]
public enum MailMessage.MimeCharacterSet

Members

Member Name Description
charsetUnknown The character set is unknown.
charsetDefault The default character set. This is the same as specifying the character set charsetUSASCII.
charsetUSASCII The default character set using US-ASCII which defines 7-bit printable characters with values ranging from 20h to 7Eh. An application that uses this character set has the broadest compatibility with most mail servers (MTAs) because it does not require the server to handle 8-bit characters correctly when the message is delivered. This is the most commonly used character set for plain text e-mail messages in the English language and is the default character set used by the class.
charsetISO8859_1 An 8-bit character set for most western European languages such as English, French, Spanish and German. This character set is also commonly referred to as Latin1. The Windows code page for this character set is 28591, however Windows code page 1252 (Windows-1252) is typically used to represent this character set in most applications.
charsetISO8859_2 An 8-bit character set for most central and eastern European languages such as Czech, Hungarian, Polish and Romanian. This character set is also commonly referred to as Latin2. This character set is similar to Windows code page 1250, however the characters are arranged differently.
charsetISO8859_5 An 8-bit character set for Cyrillic languages such as Russian, Bulgarian and Serbian. The Windows code page for this character set is 28595. This character set is not widely used and it is recommended that you use UTF-8 instead.
charsetISO8859_6 An 8-bit character set for Arabic languages. Note that the application is responsible for displaying text that uses this character set. In particular, any display engine needs to be able to handle the reverse writing direction and analyze the context of the message to correctly combine the glyphs. This character set is not widely used and it is recommended that you use UTF-8 instead.
charsetISO8859_7 An 8-bit character set for the Greek language. This character set is also commonly referred to as Latin/Greek. The Windows code page for this character set is 28597.
charsetISO8859_8 An 8-bit character set for the Hebrew language. Note that similar to Arabic, Hebrew uses a reverse writing direction. An application which displays this character should be capable of processing bi-directional text where a single message may include both right-to-left and left-to-right languages, such as Hebrew and English. The Windows code page for this character set is 28598.
charsetISO8859_9 An 8-bit character set for the Turkish language. This character set is also commonly referred to as Latin5. The Windows code page for this character set is 28599.
charsetUTF7 A 7-bit Unicode Transformation Format that uses variable-length character encoding to represent Unicode text as a stream of ASCII characters that are safe to transport between mail servers that only support 7-bit printable characters. It is primarily used as an alternative to UTF-8 which requires that the mail server support 8-bit text or use quoted-printable encoding.
charsetUTF8 An 8-bit Unicode Transformation Format that uses multibyte character sequences to represent Unicode text. It is backwards compatible with the ASCII character set, however because it uses 8-bit text, it should be encoded using either quoted-printable or base64 encoding to ensure that mail servers that do not support 8-bit characters.
charsetUTF16 A 16-bit Unicode Transformation Format that uses two bytes to represent each Unicode character. Messages that use UTF-16 are commonly encoded using the base64 algorithm. It is recommended that most applications use the UTF-8 character set, which is capable of representing all Unicode characters.

Requirements

Namespace: SocketTools

Assembly: SocketTools.MailMessage (in SocketTools.MailMessage.dll)

See Also

SocketTools Namespace