README.CN(1)

NAME
perlcn - XXXXXXXX Perl XXX

DESCRIPTION
XXXXXXX Perl XXXXXX!

XX 5.8.0 XXX, Perl XXXXXXXXXX Unicode (XXXX) XX, XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; CJK (XXXXX) XXXXXXXXXXXXXX. Unicode XXXXXXXXXX, XXXXXXXXXXXXXXXXXXXXX: XXXXXXXX, XXXXXXXX, XXXXXXXXXXXXX (XXXXX, XXXXXXXX, XXXXXXXX, XXXXXXX, XXXXX, XXXXXX, XXX). XXXXXXXXXXXXXXXXXXXXX (XX PC XXXXXXXX).

Perl XXXXXX Unicode XXXXXXX. XXXXX Perl XXXXXXXXXXXXXXXXX Unicode XXX; Perl XXXXXXXXXX (XXXXXXXXXXXXXXX) XXXX Unicode XXXXXXX. XXXXXXXXXXX, XXXXXXXX Unicode XXXXXXXXXXXXXXXXX, Perl XXXX Encode XXXXXXX, XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.

Encode XXXXXXXXXXXXXXXXXXXXXXXXX ('gb2312' XXX 'euc-cn'):

    euc-cn      Unix XXXXXXXXX, XXXXXXXXXXXXXX
    gb2312-raw  XXXXXXXXX (XXXXX) GB2312 XXXXX
    gb12345     XXXXXXXXXXXXXXXXXXXXXXXX
    iso-ir-165  GB2312 + GB6345 + GB8565 + XXXXXXX
    cp936       XXXXX 936, XXXXXXX 'GBK' (XXXXXXXXXX) XXX
    hz          7 XXXXXXXX GB2312 XXXX

XXXXXXX, XX EUC-CN XXXXXXXXXXXX Unicode, XXXXXXXXXXXXXXX:

    perl -Mencoding=euc-cn,STDOUT,utf8 -pe1 < file.euc-cn > file.utf8

Perl XXXXXX "piconv", XXXXXXX Perl XXXXXXXXXXXXXXXXX, XXXXXXX:

    piconv -f euc-cn -t utf8 < file.euc-cn > file.utf8
    piconv -f utf8 -t euc-cn < file.utf8 > file.euc-cn

XXXX, XXXX encoding XXX, XXXXXXXXXXXXXXXXXXXXXXXXXXXXX, XXXXXXX:

    #!/usr/bin/env perl
    # XXXX euc-cn XXXXXXX; XXXXXXXXXXXXXXXXXXXXX euc-cn XXXX
    use encoding 'euc-cn', STDIN => 'euc-cn', STDOUT => 'euc-cn';
    print length("XXXX");            #  2 (XXXXXXXXXX)
    print length('XXXX');            #  4 (XXXXXXXXXXX)
    print index("XXXXX", "XXX"); # -1 (XXXXXXXXXXXXXXX)
    print index('XXXXX', 'XXX'); #  1 (XXXXXXXXXXX)

XXXXXXXXXXXXXXX, "X" XXXXXXXXXXX "X" XXXXXXXXXXXXX EUC-CN XXXX "XX"; "X" XXXXXXXXXXXXX "XX" XXXXXXXXXXXXX "XX". XXXXXXXXXXX EUC-CN XXXXXXXXXXXXXXXXXXX.

  XXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXX, XXXXX CPAN (<http://www.cpan.org/>) XXXX Encode::HanExtra XXX. XXXXXXXXXXXXXX:

    gb18030     XXXXXXXXXXXXX, XXXXXXXXXXXX

XXXX, Encode::HanConvert XXXXXXXXXXXXXXXXo~XXXXXXXX:

    big5-simp   Big5 XXXXXXXXXX Unicode XXXXXXXXXX
    gbk-trad    GBK XXXXXXXXXX Unicode XXXXXXXXXX

XXXXXX GBK XX Big5 XXXX, XXXXXXXXXXXXXXX b2g.pl XX g2b.pl XXXXXXX, XXXXXXXXXXXXXXXXXXX:

    use Encode::HanConvert;
    $euc_cn = big5_to_gb($big5); # XX Big5 XX GBK
    $big5 = gb_to_big5($euc_cn); # XX GBK XX Big5

  XXXXXXXXXX
XXXXX Perl XXXXXXXXXXXXXX (XXXXXXXXXXXXXXX), XXXXXXXXXXXX Perl XXXX, XXX Unicode XXXXXXX. XXXX, XXXXXXXXXXX:

  XX Perl XXXXXXXX

<http://www.perl.com/>
    Perl XXXXX (XXXXXXXXXXXXX)

<http://www.cpan.org/>
    Perl XXXXXXXX (Comprehensive Perl Archive Network)

<http://lists.perl.org/>
    Perl XXXXXXXXX

  XX Perl XXXXX

<http://www.oreilly.com.cn/indexcat.php?c=perl>
    XXXXXXXXXXXXXXXX Perl XXXX

  Perl XXXXXXXX

<http://www.pm.org/groups/asia.html>
    XXX Perl XXXXXXXX

  Unicode XXXXXXX

<http://www.unicode.org/>
    Unicode XXXXXX (Unicode XXXXXXXXXX)

<http://www.cl.cam.ac.uk/%7Emgk25/unicode.html>
    Unix/Linux XXX UTF-8 XX Unicode XXXXXX

SEE ALSO
Encode, Encode::CN, encoding, perluniintro, perlunicode

AUTHORS
Jarkko Hietaniemi <jhi@iki.fi>

Audrey Tang (XXX) <audreyt@audreyt.org>

POD ERRORS
Hey! The above document had some coding errors, which are explained below:

Around line 11:
    Couldn't do =encoding euc-cn: Encoding is already set to utf8