System::Text::Encoding::GetEncoding method

Encoding::GetEncoding(const String&) method

Gets encoding by name.

static EncodingPtr System::Text::Encoding::GetEncoding(const String &name)
ParameterTypeDescription
nameconst String&Encoding name.

ReturnValue

Encoding of specified name.

See Also

Encoding::GetEncoding(const String&, const EncoderFallbackPtr&, const DecoderFallbackPtr&) method

Gets encoding by name.

static EncodingPtr System::Text::Encoding::GetEncoding(const String &name, const EncoderFallbackPtr &encoder_fallback, const DecoderFallbackPtr &decoder_fallback)
ParameterTypeDescription
nameconst String&Encoding name.
encoder_fallbackconst EncoderFallbackPtr&Fallback to use for encoding.
decoder_fallbackconst DecoderFallbackPtr&Fallback to use for decoding.

ReturnValue

Encoding of specified name.

See Also

Encoding::GetEncoding(int) method

Gets encoding by codepage.

static EncodingPtr System::Text::Encoding::GetEncoding(int codepage)
ParameterTypeDescription
codepageintCodepage number.

ReturnValue

Encoding of specified codepage.

See Also

Encoding::GetEncoding(int, const EncoderFallbackPtr&, const DecoderFallbackPtr&) method

Gets encoding by codepage.

static EncodingPtr System::Text::Encoding::GetEncoding(int codepage, const EncoderFallbackPtr &encoder_fallback, const DecoderFallbackPtr &decoder_fallback)
ParameterTypeDescription
codepageintCodepage number.
encoder_fallbackconst EncoderFallbackPtr&Fallback to use for encoding.
decoder_fallbackconst DecoderFallbackPtr&Fallback to use for decoding.

ReturnValue

Encoding of specified codepage.

See Also