Mono Class Library: System.Text.Encoding Overview | Members

System.Text.Encoding.Unicode Property

Gets an encoding for the Unicode format in little-endian byte order. [Edit]

public static Encoding Unicode { get; }

Value

A System.Text.Encoding for the Unicode format in little-endian byte order. [Edit]

Remarks

This property is read-only.

Note:

Unicode characters can be stored in two different byte orders, big-endian and little-endian. On little-endian platforms such as those implemented on Intel processors, it is generally more efficient to store Unicode characters in little-endian byte order. However, many other platforms can store Unicode characters in big-endian byte order. Unicode files can be distinguished by the presence of the byte order mark (U+FEFF), which will be written as either 0xfe 0xff or 0xff 0xfe.

This encoding automatically detects a byte order mark and, if necessary, switches byte orders.

[Edit]

Requirements

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0