Class Gb2312Codec.

Inherits Codec

This class implements a translator between Unicode and GB2312 (in the EUC-CN encoding).

When converting to Unicode, invalid input is converted to U+FFFE and an error is recorded, but the conversion presses on.

Gb2312Codec::Gb2312Codec()

Creates a new GB2312 Codec object.

Reimplements Garbage::Garbage().

EString Gb2312Codec::fromUnicode( const UString & u )

Returns the GB2312-encoded representation of the UString u.

Reimplements Codec::fromUnicode().

UString Gb2312Codec::toUnicode( const EString & s )

Returns the Unicode representation of the EString s.

Reimplements Codec::toUnicode().

This web page based on source code belonging to The Archiveopteryx Developers. All rights reserved.