Encoding.RegisterProvider Method (EncodingProvider)
Registers an encoding provider.
Assembly: mscorlib (in mscorlib.dll)
The EncodingProvider that makes character encodings available on a platform that does not otherwise support them. Once the encoding provider is registered, the encodings that it supports can be retrieved by calling any Encoding.GetEncoding overload.method allows you to register a class derived from
.NET Framework 4.6 includes one encoding provider, CodePagesEncodingProvider, that makes the encodings available that are present in the full .NET Framework but are not available in .NET Framework 4.6. By default, .NET Framework 4.6 only supports the Unicode encodings, ASCII, and code page 28591.
If the same encoding provider is used in multiple calls to themethod, only the first method call registers the provider. Subsequent calls are ignored.
If themethod is called to register multiple providers that handle the same encoding, the last registered provider is the used for all encoding and decoding operations. Any previously registered providers are ignored.
Available since 10
Available since 4.6