GetEncoding()

Encoding::GetEncoding(const String&) method

Gets encoding by name.

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

Arguments

ParameterTypeDescription
nameconst String&Encoding name.

Return Value

Encoding of specified name.

Encoding::GetEncoding(int) method

Gets encoding by codepage.

static EncodingPtr System::Text::Encoding::GetEncoding(int codepage)

Arguments

ParameterTypeDescription
codepageintCodepage number.

Return Value

Encoding of specified codepage.

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)

Arguments

ParameterTypeDescription
codepageintCodepage number.
encoder_fallbackconst EncoderFallbackPtr&Fallback to use for encoding.
decoder_fallbackconst DecoderFallbackPtr&Fallback to use for decoding.

Return Value

Encoding of specified codepage.

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)

Arguments

ParameterTypeDescription
nameconst String&Encoding name.
encoder_fallbackconst EncoderFallbackPtr&Fallback to use for encoding.
decoder_fallbackconst DecoderFallbackPtr&Fallback to use for decoding.

Return Value

Encoding of specified name.

See Also