Share via


Encoding.Unicode プロパティ

Unicode 形式のエンコーディングを、リトル エンディアン バイト順で取得します。

Public Shared ReadOnly Property Unicode As Encoding
[C#]
public static Encoding Unicode {get;}
[C++]
public: __property static Encoding* get_Unicode();
[JScript]
public static function get Unicode() : Encoding;

プロパティ値

Unicode 形式の、リトル エンディアン バイト順でのエンコーディング。

解説

Unicode 文字は、ビッグ エンディアンとリトル エンディアンの 2 つの異なるバイト順で格納できます。Intel コンピュータなどのリトル エンディアン プラットフォームでは、通常、Unicode 文字をリトル エンディアンのバイト順で格納した方が効率的です。ただし、Unicode 文字をビッグ エンディアンのバイト順で格納できるプラットフォームも数多くあります。

Unicode ファイルは、バイト順マーク (U+FEFF) の存在によって区別できます。バイト順マークは、ビッグ エンディアン プラットフォームでは 16 進数 0xFE 0xFF、リトル エンディアン プラットフォームでは 16 進数 0xFF 0xFE として表されます。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET, Common Language Infrastructure (CLI) Standard

参照

Encoding クラス | Encoding メンバ | System.Text 名前空間