4 die "Encode::CN not supported on EBCDIC\n";
7 our $VERSION = do { my @r = (q$Revision: 0.97 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
12 XSLoader::load('Encode::CN',$VERSION);
14 # Relocated from Encode.pm
15 # CP936 doesn't have vendor-addon for GBK, so they're identical.
16 Encode::define_alias( qr/^gbk$/i => '"cp936"');
22 Encode::CN - China-based Chinese Encodings
26 use Encode qw/encode decode/;
27 $euc_cn = encode("euc-cn", $utf8); # loads Encode::CN implicitly
28 $utf8 = decode("euc-cn", $euc_cn); # ditto
32 This module implements China-based Chinese charset encodings.
33 Encodings supported are as follows.
35 Canonical Alias Description
36 --------------------------------------------------------------------
37 euc-cn /euc.*cn$/i EUC (Extended Unix Character)
39 gb2312 The raw (low-bit) GB2312 character map
40 gb12345 Traditional chinese counterpart to
42 iso-ir-165 GB2312 + GB6345 + GB8565 + additions
43 cp936 Code Page 936, also known as GBK
45 hz 7-bit escaped GB2312 encoding
46 --------------------------------------------------------------------
48 To find how to use this module in detail, see L<Encode>.
52 Due to size concerns, C<GB 18030> (an extension to C<GBK>) is distributed
53 separately on CPAN, under the name L<Encode::HanExtra>. That module
54 also contains extra Taiwan-based encodings.
58 ASCII part (0x00-0x7f) is preserved for all encodings, even though it
59 conflicts with mappings by the Unicode Consortium. See
61 F<http://www.debian.or.jp/~kubota/unicode-symbols.html.en>
63 to find why it is implemented that way.