Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetEncoding Method

Encoding.GetEncoding Method

Returns an Encoding for the specified code page value or name.

Overload List

Returns an Encoding that corresponds to the specified code page value.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function GetEncoding(Integer) As Encoding
[C#] public static Encoding GetEncoding(int);
[C++] public: static Encoding* GetEncoding(int);
[JScript] public static function GetEncoding(int) : Encoding;

Returns an Encoding for the specified name.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function GetEncoding(String) As Encoding
[C#] public static Encoding GetEncoding(string);
[C++] public: static Encoding* GetEncoding(String*);
[JScript] public static function GetEncoding(String) : Encoding;

See Also

Encoding Class | Encoding Members | System.Text Namespace

Show:
© 2015 Microsoft