Upgrade to Encode 0.97, from Dan Kogai.
[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}
7our $VERSION = do { my @r = (q$Revision: 0.97 $ =~ /\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
0e567a6c 181;
19__END__
b2729934 20=head1 NAME
21
22Encode::CN - China-based Chinese Encodings
23
24=head1 SYNOPSIS
25
1b2c56c8 26 use Encode qw/encode decode/;
2b217bf7 27 $euc_cn = encode("euc-cn", $utf8); # loads Encode::CN implicitly
ee981de6 28 $utf8 = decode("euc-cn", $euc_cn); # ditto
b2729934 29
30=head1 DESCRIPTION
31
32This module implements China-based Chinese charset encodings.
33Encodings supported are as follows.
34
fab31126 35 Canonical Alias Description
36 --------------------------------------------------------------------
37 euc-cn /euc.*cn$/i EUC (Extended Unix Character)
38 /cn.*euc$/i
39 gb2312 The raw (low-bit) GB2312 character map
40 gb12345 Traditional chinese counterpart to
41 GB2312 (raw)
42 iso-ir-165 GB2312 + GB6345 + GB8565 + additions
43 cp936 Code Page 936, also known as GBK
44 (Extended GuoBiao)
45 hz 7-bit escaped GB2312 encoding
5129552c 46 --------------------------------------------------------------------
b2729934 47
48To find how to use this module in detail, see L<Encode>.
49
50=head1 NOTES
51
52Due to size concerns, C<GB 18030> (an extension to C<GBK>) is distributed
53separately on CPAN, under the name L<Encode::HanExtra>. That module
54also contains extra Taiwan-based encodings.
55
c0d88b76 56=head1 BUGS
b2729934 57
58ASCII part (0x00-0x7f) is preserved for all encodings, even though it
59conflicts with mappings by the Unicode Consortium. See
60
61F<http://www.debian.or.jp/~kubota/unicode-symbols.html.en>
62
63to find why it is implemented that way.
64
65=head1 SEE ALSO
66
67L<Encode>
68
69=cut