{
    "mode": "perldoc",
    "parameter": "Encode::TW",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Encode%3A%3ATW/json",
    "generated": "2026-06-03T06:36:15Z",
    "synopsis": "use Encode qw/encode decode/;\n$big5 = encode(\"big5\", $utf8); # loads Encode::TW implicitly\n$utf8 = decode(\"big5\", $big5); # ditto",
    "sections": {
        "NAME": {
            "content": "Encode::TW - Taiwan-based Chinese Encodings\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Encode qw/encode decode/;\n$big5 = encode(\"big5\", $utf8); # loads Encode::TW implicitly\n$utf8 = decode(\"big5\", $big5); # ditto\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module implements tradition Chinese charset encodings as used in Taiwan and Hong Kong.\nEncodings supported are as follows.\n\nCanonical   Alias             Description\n--------------------------------------------------------------------\nbig5-eten   /\\bbig-?5$/i      Big5 encoding (with ETen extensions)\n/\\bbig5-?et(en)?$/i\n/\\btca-?big5$/i\nbig5-hkscs  /\\bbig5-?hk(scs)?$/i\n/\\bhk(scs)?-?big5$/i\nBig5 + Cantonese characters in Hong Kong\nMacChineseTrad                Big5 + Apple Vendor Mappings\ncp950                         Code Page 950\n= Big5 + Microsoft vendor mappings\n--------------------------------------------------------------------\n\nTo find out how to use this module in detail, see Encode.\n",
            "subsections": []
        },
        "NOTES": {
            "content": "Due to size concerns, \"EUC-TW\" (Extended Unix Character), \"CCCII\" (Chinese Character Code for\nInformation Interchange), \"BIG5PLUS\" (CMEX's Big5+) and \"BIG5EXT\" (CMEX's Big5e) are distributed\nseparately on CPAN, under the name Encode::HanExtra. That module also contains extra China-based\nencodings.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Since the original \"big5\" encoding (1984) is not supported anywhere (glibc and DOS-based systems\nuses \"big5\" to mean \"big5-eten\"; Microsoft uses \"big5\" to mean \"cp950\"), a conscious decision\nwas made to alias \"big5\" to \"big5-eten\", which is the de facto superset of the original big5.\n\nThe \"CNS11643\" encoding files are not complete. For common \"CNS11643\" manipulation, please use\n\"EUC-TW\" in Encode::HanExtra, which contains planes 1-7.\n\nThe ASCII region (0x00-0x7f) is preserved for all encodings, even though this conflicts with\nmappings by the Unicode Consortium.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Encode\n",
            "subsections": []
        }
    },
    "summary": "Encode::TW - Taiwan-based Chinese Encodings",
    "flags": [],
    "examples": [],
    "see_also": []
}