class EncodingProvider

in global :: System . Text

Provides the base class for an encoding provider, which supplies encodings that are unavailable on a particular platform.


public Encoding GetEncoding( int codepage )

Returns the encoding associated with the specified code page identifier.

  • codepage The code page identifier of the requested encoding.
  • Returns The encoding that is associated with the specified code page, or if this cannot return a valid encoding that corresponds to .

public Encoding GetEncoding( int codepage, EncoderFallback encoderFallback, DecoderFallback 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.

  • codepage The code page identifier of the requested encoding.
  • encoderFallback An object that provides an error-handling procedure when a character cannot be encoded with this encoding.
  • decoderFallback An object that provides an error-handling procedure when a byte sequence cannot be decoded with this encoding.
  • Returns The encoding that is associated with the specified code page, or if this cannot return a valid encoding that corresponds to .

public Encoding GetEncoding( string name )

Returns the encoding with the specified name.

  • name The name of the requested encoding.
  • Returns The encoding that is associated with the specified name, or if this cannot return a valid encoding that corresponds to .

public Encoding GetEncoding( string name, EncoderFallback encoderFallback, DecoderFallback decoderFallback )

Returns the encoding associated with the specified name. Parameters specify an error handler for characters that cannot be encoded and byte sequences that cannot be decoded.

  • name The name of the preferred encoding.
  • encoderFallback An object that provides an error-handling procedure when a character cannot be encoded with this encoding.
  • decoderFallback An object that provides an error-handling procedure when a byte sequence cannot be decoded with the current encoding.
  • Returns The encoding that is associated with the specified name, or if this cannot return a valid encoding that corresponds to .

public IEnumerable<EncodingInfo> GetEncodings( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public EncodingProvider( )

😔 No documentation found.