Class EncodedWordEncoder
Encodes header text containing non-ASCII characters as RFC 2047 encoded words
(=?utf-8?B?...?= or =?utf-8?Q?...?=).
Inherited Members
Namespace: DRIT.Mail.Rfc.Mime.Encodings
Assembly: DRIT.Mail.dll
Syntax
public static class EncodedWordEncoder
Methods
View SourceEncode(string)
Encodes the specified text as an RFC 2047 encoded word using Base64 encoding and UTF-8 charset. If the text is ASCII-only, it is returned unchanged.
Declaration
public static string Encode(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | Specifies the text value. |
Returns
| Type | Description |
|---|---|
| string |
Encode(string, string, char)
Encodes the specified text as an RFC 2047 encoded word with the specified charset and encoding. If the text is ASCII-only, it is returned unchanged.
Declaration
public static string Encode(string text, string charset, char encoding)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | Specifies the text value. |
| string | charset | The charset name (e.g. |
| char | encoding | The encoding character: |
Returns
| Type | Description |
|---|---|
| string |