GetEncoding()

CodePagesEncodingProvider::GetEncoding(const String&) method

Gets the encoding associated with the specified name.

EncodingPtr System::Text::CodePagesEncodingProvider::GetEncoding(const String &name) override

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

Overrides the base class method to provide code page specific encoding resolution.

CodePagesEncodingProvider::GetEncoding(int) method

Gets the encoding associated with the specified code page identifier.

EncodingPtr System::Text::CodePagesEncodingProvider::GetEncoding(int codepage) override

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

Overrides the base class method to provide code page specific encoding resolution.

See Also