Encoding.UTF7 Property


Gets an encoding for the UTF-7 format.

Namespace:   System.Text
Assembly:  mscorlib (in mscorlib.dll)

static member UTF7 : Encoding with get

Property Value

Type: System.Text.Encoding

An encoding for the UTF-7 format.

UTF-7 encoding is used primarily in environments that historically have been restricted to 7 bits, such as NNTP and some email applications. Because of issues with robustness and security, you should not use UTF7 encoding in 8-bit environments where UTF-8 encoding can be used instead.

The following example determines the number of bytes required to encode a character array, encodes the characters, and displays the resulting bytes.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top