This documentation is archived and is not being maintained.

Encoding.GetEncoding Method

Returns an encoding for the specified code page.

Name Description
Encoding.GetEncoding (Int32) Returns the encoding associated with the specified code page identifier.

Supported by the .NET Compact Framework.

Encoding.GetEncoding (String) Returns an encoding associated with the specified code page name.

Supported by the .NET Compact Framework.

Encoding.GetEncoding (Int32, EncoderFallback, DecoderFallback) Returns the encoding associated with the specified code page identifier. Parameters specify an error handler for characters that cannot be encoded and byte sequences that cannot be decoded.
Encoding.GetEncoding (String, EncoderFallback, DecoderFallback) Returns the encoding associated with the specified code page name. Parameters specify an error handler for characters that cannot be encoded and byte sequences that cannot be decoded.
Show: