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