Encoding.GetEncoding Method

Returns an encoding for the specified code page.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member GetEncoding(Int32) Returns the encoding associated with the specified code page identifier.
Public method Static member GetEncoding(String) Returns the encoding associated with the specified code page name.
Public method Static member 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.
Public method Static member 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.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft