This documentation is archived and is not being maintained.

Encoding.Unicode Property

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

[Visual Basic]
Public Shared ReadOnly Property Unicode As Encoding
public static Encoding Unicode {get;}
public: __property static Encoding* get_Unicode();
public static function get Unicode() : Encoding;

Property Value

An encoding for the Unicode format in little-endian byte order.


Unicode characters can be stored in two different byte orders: big-endian and little-endian. On little-endian platforms such as Intel machines, 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 is represented as hexadecimal 0xFE 0xFF on big-endian platforms and hexadecimal 0xFF 0xFE on little-endian platforms.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Encoding Class | Encoding Members | System.Text Namespace