GetEncoding()

EncodingProvider::GetEncoding(const String&) method

Gets the encoding associated with the specified name.

virtual EncodingPtr System::Text::EncodingProvider::GetEncoding(const String &name)=0

Arguments

ParameterTypeDescription
nameconst String&The name of the encoding to retrieve.

Return Value

A shared pointer to the Encoding object associated with the specified name, or nullptr if the encoding is not supported by this provider.

Remarks

This method is intended to be overridden in a derived class.

EncodingProvider::GetEncoding(int) method

Gets the encoding associated with the specified code page identifier.

virtual EncodingPtr System::Text::EncodingProvider::GetEncoding(int codepage)=0

Arguments

ParameterTypeDescription
codepageintThe code page identifier of the encoding to retrieve.

Return Value

A shared pointer to the Encoding object associated with the specified code page, or nullptr if the encoding is not supported by this provider.

Remarks

This method is intended to be overridden in a derived class.

See Also