Encoding.UTF32 Property

 

Gets an encoding for the UTF-32 format using the little endian byte order.

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

static member UTF32 : Encoding with get

Property Value

Type: System.Text.Encoding

An encoding object for the UTF-32 format using the little endian byte order.

The UTF32Encoding object that is returned by this property may not have the appropriate behavior for your app. It uses replacement fallback to replace each string that it cannot encode and each byte that it cannot decode with the Unicode REPLACEMENT CHARACTER (U+FFFE). Instead, you can call the UTF32Encoding.UTF32Encoding(Boolean, Boolean, Boolean) constructor to instantiate a UTF32Encoding object whose fallback is either an EncoderFallbackException or a DecoderFallbackException, as the following example illustrates.

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

For a discussion of little endian byte order, see the Encoding class topic.

For information about the encodings supported by the .NET Framework and a discussion of which Unicode encoding to use, see Character Encoding in the .NET Framework.

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 2.0
Return to top
Show: