Movatterモバイル変換


[0]ホーム

URL:


Encode::CN
(source,CPAN)
version 2.03
You are viewing the version of this documentation from Perl 5.22.0.View the latest version

CONTENTS

#NAME

Encode::CN - China-based Chinese Encodings

#SYNOPSIS

use Encode qw/encode decode/; $euc_cn = encode("euc-cn", $utf8);   # loads Encode::CN implicitly$utf8   = decode("euc-cn", $euc_cn); # ditto

#DESCRIPTION

This module implements China-based Chinese charset encodings. Encodings supported are as follows.

Canonical   AliasDescription--------------------------------------------------------------------euc-cn      /\beuc.*cn$/iEUC (Extended Unix Character)        /\bcn.*euc$/i            /\bGB[-_ ]?2312(?:\D.*$|$)/i (see below)gb2312-rawThe raw (low-bit) GB2312 character mapgb12345-rawTraditional chinese counterpart to               GB2312 (raw)iso-ir-165GB2312 + GB6345 + GB8565 + additionsMacChineseSimp                GB2312 + Apple Additionscp936Code Page 936, also known as GBK               (Extended GuoBiao)hz7-bit escaped GB2312 encoding--------------------------------------------------------------------

To find how to use this module in detail, seeEncode.

#NOTES

Due to size concerns,GB 18030 (an extension toGBK) is distributed separately on CPAN, under the nameEncode::HanExtra. That module also contains extra Taiwan-based encodings.

#BUGS

When you seecharset=gb2312 on mails and web pages, they really meaneuc-cn encodings. To fix that,gb2312 is aliased toeuc-cn. Usegb2312-raw when you really mean it.

The ASCII region (0x00-0x7f) is preserved for all encodings, even though this conflicts with mappings by the Unicode Consortium.

#SEE ALSO

Encode

Perldoc Browser is maintained by Dan Book (DBOOK). Please contact him via theGitHub issue tracker oremail regarding any issues with the site itself, search, or rendering of documentation.

The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via thePerl issue tracker, themailing list, orIRC to report any issues with the contents or format of the documentation.


[8]ページ先頭

©2009-2026 Movatter.jp