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

Class ModifiedUtf7

Encodes and decodes mailbox names using the modified UTF-7 encoding defined in RFC 3501 §5.1.3. ASCII characters (except &) are represented as-is; & is encoded as &-; non-ASCII characters are encoded as modified base64 (no padding) wrapped in &...-.

Inheritance
object
ModifiedUtf7
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.Imap.Encoding
Assembly: DRIT.Mail.dll
Syntax
public static class ModifiedUtf7

Methods

View Source

Decode(string)

Decodes a modified UTF-7 string back to Unicode.

Declaration
public static string Decode(string text)
Parameters
Type Name Description
string text

The modified UTF-7 encoded string.

Returns
Type Description
string

The decoded Unicode string.

View Source

Encode(string)

Encodes a Unicode string into modified UTF-7.

Declaration
public static string Encode(string text)
Parameters
Type Name Description
string text

The text to encode.

Returns
Type Description
string

The modified UTF-7 encoded string.

  • View Source
Back to top

DR-IT Software documentation

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

Generated by DocFX