• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class EncodedWordEncoder

Encodes header text containing non-ASCII characters as RFC 2047 encoded words (=?utf-8?B?...?= or =?utf-8?Q?...?=).

Inheritance
object
EncodedWordEncoder
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Mail.Rfc.Mime.Encodings
Assembly: DRIT.Mail.dll
Syntax
public static class EncodedWordEncoder

Methods

View Source

Encode(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
View Source

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. utf-8, iso-8859-1).

char encoding

The encoding character: B for Base64 or Q for Q-encoding.

Returns
Type Description
string
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX