7 XSLoader::load('Encode::CN',$VERSION);
10 eval "use Encode::HanExtra"; # load extra encodings if they exist
16 Encode::CN - China-based Chinese Encodings
21 $euc_cn = encode("euc-cn", $utf8);
22 $utf8 = encode("euc-cn", $euc_cn);
26 This module implements China-based Chinese charset encodings.
27 Encodings supported are as follows.
29 euc-cn EUC (Extended Unix Character)
30 gb2312 The raw (low-bit) GB2312 character map
31 gb12345 Traditional chinese counterpart to GB2312 (raw)
32 iso-ir-165 GB2312 + GB6345 + GB8565 + additions
33 cp936 Code Page 936, also known as GBK (Extended GuoBiao)
34 hz 7-bit escaped GB2312 encoding
36 To find how to use this module in detail, see L<Encode>.
40 Due to size concerns, C<GB 18030> (an extension to C<GBK>) is distributed
41 separately on CPAN, under the name L<Encode::HanExtra>. That module
42 also contains extra Taiwan-based encodings.
44 This module will automatically load L<Encode::HanExtra> if you have it on
49 ASCII part (0x00-0x7f) is preserved for all encodings, even though it
50 conflicts with mappings by the Unicode Consortium. See
52 F<http://www.debian.or.jp/~kubota/unicode-symbols.html.en>
54 to find why it is implemented that way.