Slight tweaks on #15443.
[p5sagit/p5-mst-13.2.git] / ext / Encode / CN / CN.pm
CommitLineData
0e567a6c 1package Encode::CN;
5129552c 2our $VERSION = do { my @r = (q$Revision: 0.96 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
c0d88b76 3
4use Encode;
5use Encode::CN::HZ;
0e567a6c 6use XSLoader;
7XSLoader::load('Encode::CN',$VERSION);
8
5d030b67 9# Relocated from Encode.pm
10# CP936 doesn't have vendor-addon for GBK, so they're identical.
11Encode::define_alias( qr/^gbk$/i => '"cp936"');
12
0e567a6c 131;
14__END__
b2729934 15=head1 NAME
16
17Encode::CN - China-based Chinese Encodings
18
19=head1 SYNOPSIS
20
1b2c56c8 21 use Encode qw/encode decode/;
2b217bf7 22 $euc_cn = encode("euc-cn", $utf8); # loads Encode::CN implicitly
ee981de6 23 $utf8 = decode("euc-cn", $euc_cn); # ditto
b2729934 24
25=head1 DESCRIPTION
26
27This module implements China-based Chinese charset encodings.
28Encodings supported are as follows.
29
fab31126 30 Canonical Alias Description
31 --------------------------------------------------------------------
32 euc-cn /euc.*cn$/i EUC (Extended Unix Character)
33 /cn.*euc$/i
34 gb2312 The raw (low-bit) GB2312 character map
35 gb12345 Traditional chinese counterpart to
36 GB2312 (raw)
37 iso-ir-165 GB2312 + GB6345 + GB8565 + additions
38 cp936 Code Page 936, also known as GBK
39 (Extended GuoBiao)
40 hz 7-bit escaped GB2312 encoding
5129552c 41 --------------------------------------------------------------------
b2729934 42
43To find how to use this module in detail, see L<Encode>.
44
45=head1 NOTES
46
47Due to size concerns, C<GB 18030> (an extension to C<GBK>) is distributed
48separately on CPAN, under the name L<Encode::HanExtra>. That module
49also contains extra Taiwan-based encodings.
50
c0d88b76 51=head1 BUGS
b2729934 52
53ASCII part (0x00-0x7f) is preserved for all encodings, even though it
54conflicts with mappings by the Unicode Consortium. See
55
56F<http://www.debian.or.jp/~kubota/unicode-symbols.html.en>
57
58to find why it is implemented that way.
59
60=head1 SEE ALSO
61
62L<Encode>
63
64=cut