当前位置: 首页 > 工具软件 > ICU4C > 使用案例 >

ICU4C一些示例代码

濮阳和泰
2023-12-01

  

    //ucnv_convert_;    
    //ucnv_convertEx()
    string name = ucnv_getDefaultName(); //本地默认字符编码,win7为936,win10为utf-8
    cout << "default name: " << name << endl;

    int32_t count = ucnv_countAvailable();
    printf("Available converters: %d\n", count);
    for (int32_t i = 0; i < count; i++)        
    {
        //ucnv_getAlias()
        UErrorCode error;
        const char* name = ucnv_getAvailableName(i);
        cout << i << "  name:" << name << "  alias: ";
        uint16_t aliascount = ucnv_countAliases(name, &error);
        for (auto m = 0; m < aliascount; ++m)
        {
            const char* alias = ucnv_getAlias(name, m, &error);
            cout <<m<<": "<<alias << " ";
        }
        cout << endl;    
    }

    uint32_t acp = GetACP();

    FILE* p = fopen("euc.txt", "rt");
    string s;
    if (p) {
        char c = fgetc(p);
        while (c != EOF)
        {
            s += c;
            c = fgetc(p);
        }
        fclose(p);

        cout << "変更しようとする文字列(EUC)は:" << s.c_str() << endl;

        UChar* ub = new UChar[s.length()];
        char* cb = new char[s.length() * 4];

        int size1 = sizeof(char);
        int size2 = sizeof(UChar);

        UErrorCode err;
        UConverter* conv = ucnv_open("euc_jp", &err);
        int len = ucnv_toUChars(conv, ub, s.length(), s.c_str(), s.length(), &err);
        ucnv_close(conv);

        conv = ucnv_open("shift_jis", &err);
        len = ucnv_fromUChars(conv, cb, s.length() * 4, ub, len, &err);
        ucnv_close(conv);

        cout << "変更した文字列(SHIFT_JIS)は:" << cb << endl;
        delete[] ub;
        delete[] cb;
    }
    wchar_t aaa[] = L"中国人的系统上123323";
    int alen = wcslen(aaa);
    int blen = alen * 2 + sizeof(int);
    char* abuff = new char[blen];
    UErrorCode    error = U_ZERO_ERROR;
    //utf-16转gb2312
    int result = ucnv_convert("gb2312", "utf-16le", abuff, blen, 
    (const char*)aaa, alen,&error);

    cout << abuff << endl << strlen(abuff) << endl;
    delete[]abuff;

    Somefuction1();
    Somefuction2();

    //const char* dir = "C:\\source\\repos\\icutest\\Debug"; 
    //此路径下应存在.dat文件,在4.8版本中库文件为icudt48l.dat
    //u_setDataDirectory(dir);//icu库函数    

    // 下面是 ICU4C 4.2 的测试代码  
    const char* toConverterName = "utf8";
    const char* fromConverterName = "gb2312";
    char target[100];

    int32_t targetCapacity = 100;
    const char* source = "呵呵";
    int32_t sourceLength = -1;
    UErrorCode ErrorCode = U_ZERO_ERROR; 
    // 文档中说该值必须初始化为U_ZERO_ERROR,
    //其实如果不初始化该值而且转换中没有出错时该值是不会被填写的,即未初始化前的值  

    int ret = ucnv_convert(toConverterName, // utf8 或 utf-8 效果是一样的  
        fromConverterName, // gbk 与 gb2312 好像区别不大,用 gbk 可能会好些  
        target,
        targetCapacity,
        source,
        sourceLength, // 长度为 -1 表明 NULL 终止的字符串  
        &ErrorCode);  // 该值不能为空,否则函数返回值为 0 并不做任何转换  
    // 返回值 ret 为整个源字符串 source 转换后的长度
    //(即使 targetCapacity 空间不足也是如此) 

 有效的编码名称:

Available converters: 232
0  name:UTF-8  alias: 0: UTF-8 1: ibm-1208 2: ibm-1209 3: ibm-5304 4: ibm-5305 5: ibm-13496 6: ibm-13497 7: ibm-17592 8: ibm-17593 9: windows-65001 10: cp1208 11: x-UTF_8J 12: unicode-1-1-utf-8 13: unicode-2-0-utf-8
1  name:UTF-16  alias: 0: UTF-16 1: ISO-10646-UCS-2 2: ibm-1204 3: ibm-1205 4: unicode 5: csUnicode 6: ucs-2
2  name:UTF-16BE  alias: 0: UTF-16BE 1: x-utf-16be 2: UnicodeBigUnmarked 3: ibm-1200 4: ibm-1201 5: ibm-13488 6: ibm-13489 7: ibm-17584 8: ibm-17585 9: ibm-21680 10: ibm-21681 11: ibm-25776 12: ibm-25777 13: ibm-29872 14: ibm-29873 15: ibm-61955 16: ibm-61956 17: windows-1201 18: cp1200 19: cp1201 20: UTF16_BigEndian
3  name:UTF-16LE  alias: 0: UTF-16LE 1: x-utf-16le 2: UnicodeLittleUnmarked 3: ibm-1202 4: ibm-1203 5: ibm-13490 6: ibm-13491 7: ibm-17586 8: ibm-17587 9: ibm-21682 10: ibm-21683 11: ibm-25778 12: ibm-25779 13: ibm-29874 14: ibm-29875 15: UTF16_LittleEndian 16: windows-1200
4  name:UTF-32  alias: 0: UTF-32 1: ISO-10646-UCS-4 2: ibm-1236 3: ibm-1237 4: csUCS4 5: ucs-4
5  name:UTF-32BE  alias: 0: UTF-32BE 1: UTF32_BigEndian 2: ibm-1232 3: ibm-1233 4: ibm-9424
6  name:UTF-32LE  alias: 0: UTF-32LE 1: UTF32_LittleEndian 2: ibm-1234 3: ibm-1235
7  name:UTF16_PlatformEndian  alias: 0: UTF16_PlatformEndian
8  name:UTF16_OppositeEndian  alias: 0: UTF16_OppositeEndian
9  name:UTF32_PlatformEndian  alias: 0: UTF32_PlatformEndian
10  name:UTF32_OppositeEndian  alias: 0: UTF32_OppositeEndian
11  name:UTF-16BE,version=1  alias: 0: UTF-16BE,version=1 1: UnicodeBig
12  name:UTF-16LE,version=1  alias: 0: UTF-16LE,version=1 1: UnicodeLittle 2: x-UTF-16LE-BOM
13  name:UTF-16,version=1  alias: 0: UTF-16,version=1
14  name:UTF-16,version=2  alias: 0: UTF-16,version=2
15  name:UTF-7  alias: 0: UTF-7 1: windows-65000 2: unicode-1-1-utf-7 3: unicode-2-0-utf-7
16  name:IMAP-mailbox-name  alias: 0: IMAP-mailbox-name
17  name:SCSU  alias: 0: SCSU 1: ibm-1212 2: ibm-1213
18  name:BOCU-1  alias: 0: BOCU-1 1: csBOCU-1 2: ibm-1214 3: ibm-1215
19  name:CESU-8  alias: 0: CESU-8 1: ibm-9400
20  name:ISO-8859-1  alias: 0: ISO-8859-1 1: ibm-819 2: IBM819 3: cp819 4: latin1 5: 8859_1 6: csISOLatin1 7: iso-ir-100 8: ISO_8859-1:1987 9: l1 10: 819
21  name:US-ASCII  alias: 0: US-ASCII 1: ASCII 2: ANSI_X3.4-1968 3: ANSI_X3.4-1986 4: ISO_646.irv:1991 5: iso_646.irv:1983 6: ISO646-US 7: us 8: csASCII 9: iso-ir-6 10: cp367 11: ascii7 12: 646 13: windows-20127 14: ibm-367 15: IBM367
22  name:gb18030  alias: 0: gb18030 1: ibm-1392 2: windows-54936 3: GB18030
23  name:ibm-912_P100-1995  alias: 0: ibm-912_P100-1995 1: ibm-912 2: ISO-8859-2 3: ISO_8859-2:1987 4: latin2 5: csISOLatin2 6: iso-ir-101 7: l2 8: 8859_2 9: cp912 10: 912 11: windows-28592
24  name:ibm-913_P100-2000  alias: 0: ibm-913_P100-2000 1: ibm-913 2: ISO-8859-3 3: ISO_8859-3:1988 4: latin3 5: csISOLatin3 6: iso-ir-109 7: l3 8: 8859_3 9: cp913 10: 913 11: windows-28593
25  name:ibm-914_P100-1995  alias: 0: ibm-914_P100-1995 1: ibm-914 2: ISO-8859-4 3: latin4 4: csISOLatin4 5: iso-ir-110 6: ISO_8859-4:1988 7: l4 8: 8859_4 9: cp914 10: 914 11: windows-28594
26  name:ibm-915_P100-1995  alias: 0: ibm-915_P100-1995 1: ibm-915 2: ISO-8859-5 3: cyrillic 4: csISOLatinCyrillic 5: iso-ir-144 6: ISO_8859-5:1988 7: 8859_5 8: cp915 9: 915 10: windows-28595
27  name:ibm-1089_P100-1995  alias: 0: ibm-1089_P100-1995 1: ibm-1089 2: ISO-8859-6 3: arabic 4: csISOLatinArabic 5: iso-ir-127 6: ISO_8859-6:1987 7: ECMA-114 8: ASMO-708 9: 8859_6 10: cp1089 11: 1089 12: windows-28596 13: ISO-8859-6-I 14: ISO-8859-6-E 15: x-ISO-8859-6S
28  name:ibm-9005_X110-2007  alias: 0: ibm-9005_X110-2007 1: ibm-9005 2: ISO-8859-7 3: 8859_7 4: greek 5: greek8 6: ELOT_928 7: ECMA-118 8: csISOLatinGreek 9: iso-ir-126 10: ISO_8859-7:1987 11: windows-28597 12: sun_eu_greek
29  name:ibm-813_P100-1995  alias: 0: ibm-813_P100-1995 1: ibm-813 2: cp813 3: 813
30  name:ibm-5012_P100-1999  alias: 0: ibm-5012_P100-1999 1: ibm-5012 2: ISO-8859-8 3: hebrew 4: csISOLatinHebrew 5: iso-ir-138 6: ISO_8859-8:1988 7: ISO-8859-8-I 8: ISO-8859-8-E 9: 8859_8 10: windows-28598 11: hebrew8
31  name:ibm-916_P100-1995  alias: 0: ibm-916_P100-1995 1: ibm-916 2: cp916 3: 916
32  name:ibm-920_P100-1995  alias: 0: ibm-920_P100-1995 1: ibm-920 2: ISO-8859-9 3: latin5 4: csISOLatin5 5: iso-ir-148 6: ISO_8859-9:1989 7: l5 8: 8859_9 9: cp920 10: 920 11: windows-28599 12: ECMA-128 13: turkish8 14: turkish
33  name:iso-8859_10-1998  alias: 0: iso-8859_10-1998 1: ISO-8859-10 2: iso-ir-157 3: l6 4: ISO_8859-10:1992 5: csISOLatin6 6: latin6
34  name:iso-8859_11-2001  alias: 0: iso-8859_11-2001 1: ISO-8859-11 2: thai8 3: x-iso-8859-11
35  name:ibm-921_P100-1995  alias: 0: ibm-921_P100-1995 1: ibm-921 2: ISO-8859-13 3: 8859_13 4: windows-28603 5: cp921 6: 921 7: x-IBM921
36  name:iso-8859_14-1998  alias: 0: iso-8859_14-1998 1: ISO-8859-14 2: iso-ir-199 3: ISO_8859-14:1998 4: latin8 5: iso-celtic 6: l8
37  name:ibm-923_P100-1998  alias: 0: ibm-923_P100-1998 1: ibm-923 2: ISO-8859-15 3: Latin-9 4: l9 5: 8859_15 6: latin0 7: csisolatin0 8: csisolatin9 9: iso8859_15_fdis 10: cp923 11: 923 12: windows-28605
38  name:ibm-942_P12A-1999  alias: 0: ibm-942_P12A-1999 1: ibm-942 2: ibm-932 3: cp932 4: shift_jis78 5: sjis78 6: ibm-942_VSUB_VPUA 7: ibm-932_VSUB_VPUA 8: x-IBM942 9: x-IBM942C
39  name:ibm-943_P15A-2003  alias: 0: ibm-943_P15A-2003 1: ibm-943 2: Shift_JIS 3: MS_Kanji 4: csShiftJIS 5: windows-31j 6: csWindows31J 7: x-sjis 8: x-ms-cp932 9: cp932 10: windows-932 11: cp943c 12: IBM-943C 13: ms932 14: pck 15: sjis 16: ibm-943_VSUB_VPUA 17: x-MS932_0213 18: x-JISAutoDetect
40  name:ibm-943_P130-1999  alias: 0: ibm-943_P130-1999 1: ibm-943 2: Shift_JIS 3: cp943 4: 943 5: ibm-943_VASCII_VSUB_VPUA 6: x-IBM943
41  name:ibm-33722_P12A_P12A-2009_U2  alias: 0: ibm-33722_P12A_P12A-2009_U2 1: ibm-33722 2: ibm-5050 3: ibm-33722_VPUA 4: IBM-eucJP
42  name:ibm-33722_P120-1999  alias: 0: ibm-33722_P120-1999 1: ibm-33722 2: ibm-5050 3: cp33722 4: 33722 5: ibm-33722_VASCII_VPUA 6: x-IBM33722 7: x-IBM33722A 8: x-IBM33722C
43  name:ibm-954_P101-2007  alias: 0: ibm-954_P101-2007 1: ibm-954 2: x-IBM954 3: x-IBM954C
44  name:euc-jp-2007  alias: 0: euc-jp-2007 1: EUC-JP 2: Extended_UNIX_Code_Packed_Format_for_Japanese 3: csEUCPkdFmtJapanese 4: X-EUC-JP 5: eucjis 6: ujis
45  name:ibm-1373_P100-2002  alias: 0: ibm-1373_P100-2002 1: ibm-1373 2: windows-950
46  name:windows-950-2000  alias: 0: windows-950-2000 1: Big5 2: csBig5 3: windows-950 4: x-windows-950 5: x-big5 6: ms950
47  name:ibm-950_P110-1999  alias: 0: ibm-950_P110-1999 1: ibm-950 2: cp950 3: 950 4: x-IBM950
48  name:ibm-1375_P100-2008  alias: 0: ibm-1375_P100-2008 1: ibm-1375 2: Big5-HKSCS 3: big5hk 4: HKSCS-BIG5
49  name:ibm-5471_P100-2006  alias: 0: ibm-5471_P100-2006 1: ibm-5471 2: Big5-HKSCS 3: MS950_HKSCS 4: hkbig5 5: big5-hkscs:unicode3.0 6: x-MS950-HKSCS
50  name:ibm-1386_P100-2001  alias: 0: ibm-1386_P100-2001 1: ibm-1386 2: cp1386 3: windows-936 4: ibm-1386_VSUB_VPUA
51  name:windows-936-2000  alias: 0: windows-936-2000 1: GBK 2: CP936 3: MS936 4: windows-936
52  name:ibm-1383_P110-1999  alias: 0: ibm-1383_P110-1999 1: ibm-1383 2: GB2312 3: csGB2312 4: cp1383 5: 1383 6: EUC-CN 7: ibm-eucCN 8: hp15CN 9: ibm-1383_VPUA
53  name:ibm-5478_P100-1995  alias: 0: ibm-5478_P100-1995 1: ibm-5478 2: GB_2312-80 3: chinese 4: iso-ir-58 5: csISO58GB231280 6: gb2312-1980 7: GB2312.1980-0
54  name:euc-tw-2014  alias: 0: euc-tw-2014 1: EUC-TW
55  name:ibm-964_P110-1999  alias: 0: ibm-964_P110-1999 1: ibm-964 2: ibm-eucTW 3: cns11643 4: cp964 5: 964 6: ibm-964_VPUA 7: x-IBM964
56  name:ibm-949_P110-1999  alias: 0: ibm-949_P110-1999 1: ibm-949 2: cp949 3: 949 4: ibm-949_VASCII_VSUB_VPUA 5: x-IBM949
57  name:ibm-949_P11A-1999  alias: 0: ibm-949_P11A-1999 1: ibm-949 2: cp949c 3: ibm-949_VSUB_VPUA 4: x-IBM949C 5: IBM-949C
58  name:ibm-970_P110_P110-2006_U2  alias: 0: ibm-970_P110_P110-2006_U2 1: ibm-970 2: EUC-KR 3: KS_C_5601-1987 4: windows-51949 5: csEUCKR 6: ibm-eucKR 7: KSC_5601 8: 5601 9: cp970 10: 970 11: ibm-970_VPUA 12: x-IBM970
59  name:ibm-971_P100-1995  alias: 0: ibm-971_P100-1995 1: ibm-971 2: ibm-971_VPUA 3: x-IBM971
60  name:ibm-1363_P11B-1998  alias: 0: ibm-1363_P11B-1998 1: ibm-1363 2: KS_C_5601-1987 3: KS_C_5601-1989 4: KSC_5601 5: csKSC56011987 6: korean 7: iso-ir-149 8: cp1363 9: 5601 10: ksc 11: windows-949 12: ibm-1363_VSUB_VPUA 13: x-IBM1363C
61  name:ibm-1363_P110-1997  alias: 0: ibm-1363_P110-1997 1: ibm-1363 2: ibm-1363_VASCII_VSUB_VPUA 3: x-IBM1363
62  name:windows-949-2000  alias: 0: windows-949-2000 1: windows-949 2: KS_C_5601-1987 3: KS_C_5601-1989 4: KSC_5601 5: csKSC56011987 6: korean 7: iso-ir-149 8: ms949 9: x-KSC5601
63  name:windows-874-2000  alias: 0: windows-874-2000 1: TIS-620 2: windows-874 3: MS874 4: x-windows-874
64  name:ibm-874_P100-1995  alias: 0: ibm-874_P100-1995 1: ibm-874 2: ibm-9066 3: cp874 4: TIS-620 5: tis620.2533 6: eucTH 7: x-IBM874
65  name:ibm-1162_P100-1999  alias: 0: ibm-1162_P100-1999 1: ibm-1162
66  name:ibm-437_P100-1995  alias: 0: ibm-437_P100-1995 1: ibm-437 2: IBM437 3: cp437 4: 437 5: csPC8CodePage437 6: windows-437
67  name:ibm-720_P100-1997  alias: 0: ibm-720_P100-1997 1: ibm-720 2: windows-720 3: DOS-720 4: x-IBM720
68  name:ibm-737_P100-1997  alias: 0: ibm-737_P100-1997 1: ibm-737 2: IBM737 3: cp737 4: windows-737 5: 737 6: x-IBM737
69  name:ibm-775_P100-1996  alias: 0: ibm-775_P100-1996 1: ibm-775 2: IBM775 3: cp775 4: csPC775Baltic 5: windows-775 6: 775
70  name:ibm-850_P100-1995  alias: 0: ibm-850_P100-1995 1: ibm-850 2: IBM850 3: cp850 4: 850 5: csPC850Multilingual 6: windows-850
71  name:ibm-851_P100-1995  alias: 0: ibm-851_P100-1995 1: ibm-851 2: IBM851 3: cp851 4: 851 5: csPC851
72  name:ibm-852_P100-1995  alias: 0: ibm-852_P100-1995 1: ibm-852 2: IBM852 3: cp852 4: 852 5: csPCp852 6: windows-852
73  name:ibm-855_P100-1995  alias: 0: ibm-855_P100-1995 1: ibm-855 2: IBM855 3: cp855 4: 855 5: csIBM855 6: csPCp855 7: windows-855
74  name:ibm-856_P100-1995  alias: 0: ibm-856_P100-1995 1: ibm-856 2: IBM856 3: cp856 4: 856 5: x-IBM856
75  name:ibm-857_P100-1995  alias: 0: ibm-857_P100-1995 1: ibm-857 2: IBM857 3: cp857 4: 857 5: csIBM857 6: windows-857
76  name:ibm-858_P100-1997  alias: 0: ibm-858_P100-1997 1: ibm-858 2: IBM00858 3: CCSID00858 4: CP00858 5: PC-Multilingual-850+euro 6: cp858 7: windows-858
77  name:ibm-860_P100-1995  alias: 0: ibm-860_P100-1995 1: ibm-860 2: IBM860 3: cp860 4: 860 5: csIBM860
78  name:ibm-861_P100-1995  alias: 0: ibm-861_P100-1995 1: ibm-861 2: IBM861 3: cp861 4: 861 5: cp-is 6: csIBM861 7: windows-861
79  name:ibm-862_P100-1995  alias: 0: ibm-862_P100-1995 1: ibm-862 2: IBM862 3: cp862 4: 862 5: csPC862LatinHebrew 6: DOS-862 7: windows-862
80  name:ibm-863_P100-1995  alias: 0: ibm-863_P100-1995 1: ibm-863 2: IBM863 3: cp863 4: 863 5: csIBM863
81  name:ibm-864_X110-1999  alias: 0: ibm-864_X110-1999 1: ibm-864 2: IBM864 3: cp864 4: csIBM864
82  name:ibm-865_P100-1995  alias: 0: ibm-865_P100-1995 1: ibm-865 2: IBM865 3: cp865 4: 865 5: csIBM865
83  name:ibm-866_P100-1995  alias: 0: ibm-866_P100-1995 1: ibm-866 2: IBM866 3: cp866 4: 866 5: csIBM866 6: windows-866
84  name:ibm-867_P100-1998  alias: 0: ibm-867_P100-1998 1: ibm-867 2: x-IBM867
85  name:ibm-868_P100-1995  alias: 0: ibm-868_P100-1995 1: ibm-868 2: IBM868 3: CP868 4: 868 5: csIBM868 6: cp-ar
86  name:ibm-869_P100-1995  alias: 0: ibm-869_P100-1995 1: ibm-869 2: IBM869 3: cp869 4: 869 5: cp-gr 6: csIBM869 7: windows-869
87  name:ibm-878_P100-1996  alias: 0: ibm-878_P100-1996 1: ibm-878 2: KOI8-R 3: koi8 4: csKOI8R 5: windows-20866 6: cp878
88  name:ibm-901_P100-1999  alias: 0: ibm-901_P100-1999 1: ibm-901
89  name:ibm-902_P100-1999  alias: 0: ibm-902_P100-1999 1: ibm-902
90  name:ibm-922_P100-1999  alias: 0: ibm-922_P100-1999 1: ibm-922 2: IBM922 3: cp922 4: 922 5: x-IBM922
91  name:ibm-1168_P100-2002  alias: 0: ibm-1168_P100-2002 1: ibm-1168 2: KOI8-U 3: windows-21866
92  name:ibm-4909_P100-1999  alias: 0: ibm-4909_P100-1999 1: ibm-4909
93  name:ibm-5346_P100-1998  alias: 0: ibm-5346_P100-1998 1: ibm-5346 2: windows-1250 3: cp1250
94  name:ibm-5347_P100-1998  alias: 0: ibm-5347_P100-1998 1: ibm-5347 2: windows-1251 3: cp1251 4: ANSI1251
95  name:ibm-5348_P100-1997  alias: 0: ibm-5348_P100-1997 1: ibm-5348 2: windows-1252 3: cp1252
96  name:ibm-5349_P100-1998  alias: 0: ibm-5349_P100-1998 1: ibm-5349 2: windows-1253 3: cp1253
97  name:ibm-5350_P100-1998  alias: 0: ibm-5350_P100-1998 1: ibm-5350 2: windows-1254 3: cp1254
98  name:ibm-9447_P100-2002  alias: 0: ibm-9447_P100-2002 1: ibm-9447 2: windows-1255 3: cp1255
99  name:ibm-9448_X100-2005  alias: 0: ibm-9448_X100-2005 1: ibm-9448 2: windows-1256 3: cp1256 4: x-windows-1256S
100  name:ibm-9449_P100-2002  alias: 0: ibm-9449_P100-2002 1: ibm-9449 2: windows-1257 3: cp1257
101  name:ibm-5354_P100-1998  alias: 0: ibm-5354_P100-1998 1: ibm-5354 2: windows-1258 3: cp1258
102  name:ibm-1250_P100-1995  alias: 0: ibm-1250_P100-1995 1: ibm-1250 2: windows-1250
103  name:ibm-1251_P100-1995  alias: 0: ibm-1251_P100-1995 1: ibm-1251 2: windows-1251
104  name:ibm-1252_P100-2000  alias: 0: ibm-1252_P100-2000 1: ibm-1252 2: windows-1252
105  name:ibm-1253_P100-1995  alias: 0: ibm-1253_P100-1995 1: ibm-1253 2: windows-1253
106  name:ibm-1254_P100-1995  alias: 0: ibm-1254_P100-1995 1: ibm-1254 2: windows-1254
107  name:ibm-1255_P100-1995  alias: 0: ibm-1255_P100-1995 1: ibm-1255
108  name:ibm-5351_P100-1998  alias: 0: ibm-5351_P100-1998 1: ibm-5351 2: windows-1255
109  name:ibm-1256_P110-1997  alias: 0: ibm-1256_P110-1997 1: ibm-1256
110  name:ibm-5352_P100-1998  alias: 0: ibm-5352_P100-1998 1: ibm-5352 2: windows-1256
111  name:ibm-1257_P100-1995  alias: 0: ibm-1257_P100-1995 1: ibm-1257
112  name:ibm-5353_P100-1998  alias: 0: ibm-5353_P100-1998 1: ibm-5353 2: windows-1257
113  name:ibm-1258_P100-1997  alias: 0: ibm-1258_P100-1997 1: ibm-1258 2: windows-1258
114  name:macos-0_2-10.2  alias: 0: macos-0_2-10.2 1: macintosh 2: mac 3: csMacintosh 4: windows-10000 5: macroman 6: x-macroman
115  name:macos-6_2-10.4  alias: 0: macos-6_2-10.4 1: x-mac-greek 2: windows-10006 3: macgr 4: x-MacGreek
116  name:macos-7_3-10.2  alias: 0: macos-7_3-10.2 1: x-mac-cyrillic 2: windows-10007 3: mac-cyrillic 4: maccy 5: x-MacCyrillic 6: x-MacUkraine
117  name:macos-29-10.2  alias: 0: macos-29-10.2 1: x-mac-centraleurroman 2: windows-10029 3: x-mac-ce 4: macce 5: maccentraleurope 6: x-MacCentralEurope
118  name:macos-35-10.2  alias: 0: macos-35-10.2 1: x-mac-turkish 2: windows-10081 3: mactr 4: x-MacTurkish
119  name:ibm-1051_P100-1995  alias: 0: ibm-1051_P100-1995 1: ibm-1051 2: hp-roman8 3: roman8 4: r8 5: csHPRoman8 6: x-roman8
120  name:ibm-1276_P100-1995  alias: 0: ibm-1276_P100-1995 1: ibm-1276 2: Adobe-Standard-Encoding 3: csAdobeStandardEncoding
121  name:ibm-1006_P100-1995  alias: 0: ibm-1006_P100-1995 1: ibm-1006 2: IBM1006 3: cp1006 4: 1006 5: x-IBM1006
122  name:ibm-1098_P100-1995  alias: 0: ibm-1098_P100-1995 1: ibm-1098 2: IBM1098 3: cp1098 4: 1098 5: x-IBM1098
123  name:ibm-1124_P100-1996  alias: 0: ibm-1124_P100-1996 1: ibm-1124 2: cp1124 3: 1124 4: x-IBM1124
124  name:ibm-1125_P100-1997  alias: 0: ibm-1125_P100-1997 1: ibm-1125 2: cp1125
125  name:ibm-1129_P100-1997  alias: 0: ibm-1129_P100-1997 1: ibm-1129
126  name:ibm-1131_P100-1997  alias: 0: ibm-1131_P100-1997 1: ibm-1131 2: cp1131
127  name:ibm-1133_P100-1997  alias: 0: ibm-1133_P100-1997 1: ibm-1133
128  name:gsm-03.38-2009  alias: 0: gsm-03.38-2009 1: GSM0338
129  name:ISO_2022,locale=ja,version=0  alias: 0: ISO_2022,locale=ja,version=0 1: ISO-2022-JP 2: csISO2022JP 3: x-windows-iso2022jp 4: x-windows-50220
130  name:ISO_2022,locale=ja,version=1  alias: 0: ISO_2022,locale=ja,version=1 1: ISO-2022-JP-1 2: JIS_Encoding 3: csJISEncoding 4: ibm-5054 5: JIS 6: x-windows-50221
131  name:ISO_2022,locale=ja,version=2  alias: 0: ISO_2022,locale=ja,version=2 1: ISO-2022-JP-2 2: csISO2022JP2
132  name:ISO_2022,locale=ja,version=3  alias: 0: ISO_2022,locale=ja,version=3 1: JIS7
133  name:ISO_2022,locale=ja,version=4  alias: 0: ISO_2022,locale=ja,version=4 1: JIS8
134  name:ISO_2022,locale=ko,version=0  alias: 0: ISO_2022,locale=ko,version=0 1: ISO-2022-KR 2: csISO2022KR
135  name:ISO_2022,locale=ko,version=1  alias: 0: ISO_2022,locale=ko,version=1 1: ibm-25546
136  name:ISO_2022,locale=zh,version=0  alias: 0: ISO_2022,locale=zh,version=0 1: ISO-2022-CN 2: csISO2022CN 3: x-ISO-2022-CN-GB
137  name:ISO_2022,locale=zh,version=1  alias: 0: ISO_2022,locale=zh,version=1 1: ISO-2022-CN-EXT
138  name:ISO_2022,locale=zh,version=2  alias: 0: ISO_2022,locale=zh,version=2 1: ISO-2022-CN-CNS 2: x-ISO-2022-CN-CNS
139  name:HZ  alias: 0: HZ 1: HZ-GB-2312
140  name:x11-compound-text  alias: 0: x11-compound-text 1: COMPOUND_TEXT 2: x-compound-text
141  name:ISCII,version=0  alias: 0: ISCII,version=0 1: x-ISCII91 2: x-iscii-de 3: windows-57002 4: iscii-dev 5: ibm-4902
142  name:ISCII,version=1  alias: 0: ISCII,version=1 1: x-iscii-be 2: windows-57003 3: iscii-bng 4: windows-57006 5: x-iscii-as
143  name:ISCII,version=2  alias: 0: ISCII,version=2 1: x-iscii-pa 2: windows-57011 3: iscii-gur
144  name:ISCII,version=3  alias: 0: ISCII,version=3 1: x-iscii-gu 2: windows-57010 3: iscii-guj
145  name:ISCII,version=4  alias: 0: ISCII,version=4 1: x-iscii-or 2: windows-57007 3: iscii-ori
146  name:ISCII,version=5  alias: 0: ISCII,version=5 1: x-iscii-ta 2: windows-57004 3: iscii-tml
147  name:ISCII,version=6  alias: 0: ISCII,version=6 1: x-iscii-te 2: windows-57005 3: iscii-tlg
148  name:ISCII,version=7  alias: 0: ISCII,version=7 1: x-iscii-ka 2: windows-57008 3: iscii-knd
149  name:ISCII,version=8  alias: 0: ISCII,version=8 1: x-iscii-ma 2: windows-57009 3: iscii-mlm
150  name:LMBCS-1  alias: 0: LMBCS-1 1: lmbcs 2: ibm-65025
151  name:ibm-37_P100-1995  alias: 0: ibm-37_P100-1995 1: ibm-37 2: IBM037 3: ibm-037 4: ebcdic-cp-us 5: ebcdic-cp-ca 6: ebcdic-cp-wt 7: ebcdic-cp-nl 8: csIBM037 9: cp037 10: 037 11: cpibm37 12: cp37
152  name:ibm-273_P100-1995  alias: 0: ibm-273_P100-1995 1: ibm-273 2: IBM273 3: CP273 4: csIBM273 5: ebcdic-de 6: 273
153  name:ibm-277_P100-1995  alias: 0: ibm-277_P100-1995 1: ibm-277 2: IBM277 3: cp277 4: EBCDIC-CP-DK 5: EBCDIC-CP-NO 6: csIBM277 7: ebcdic-dk 8: 277
154  name:ibm-278_P100-1995  alias: 0: ibm-278_P100-1995 1: ibm-278 2: IBM278 3: cp278 4: ebcdic-cp-fi 5: ebcdic-cp-se 6: csIBM278 7: ebcdic-sv 8: 278
155  name:ibm-280_P100-1995  alias: 0: ibm-280_P100-1995 1: ibm-280 2: IBM280 3: CP280 4: ebcdic-cp-it 5: csIBM280 6: 280
156  name:ibm-284_P100-1995  alias: 0: ibm-284_P100-1995 1: ibm-284 2: IBM284 3: CP284 4: ebcdic-cp-es 5: csIBM284 6: cpibm284 7: 284
157  name:ibm-285_P100-1995  alias: 0: ibm-285_P100-1995 1: ibm-285 2: IBM285 3: CP285 4: ebcdic-cp-gb 5: csIBM285 6: cpibm285 7: ebcdic-gb 8: 285
158  name:ibm-290_P100-1995  alias: 0: ibm-290_P100-1995 1: ibm-290 2: IBM290 3: cp290 4: EBCDIC-JP-kana 5: csIBM290
159  name:ibm-297_P100-1995  alias: 0: ibm-297_P100-1995 1: ibm-297 2: IBM297 3: cp297 4: ebcdic-cp-fr 5: csIBM297 6: cpibm297 7: 297
160  name:ibm-420_X120-1999  alias: 0: ibm-420_X120-1999 1: ibm-420 2: IBM420 3: cp420 4: ebcdic-cp-ar1 5: csIBM420 6: 420
161  name:ibm-424_P100-1995  alias: 0: ibm-424_P100-1995 1: ibm-424 2: IBM424 3: cp424 4: ebcdic-cp-he 5: csIBM424 6: 424
162  name:ibm-500_P100-1995  alias: 0: ibm-500_P100-1995 1: ibm-500 2: IBM500 3: CP500 4: ebcdic-cp-be 5: csIBM500 6: ebcdic-cp-ch 7: 500
163  name:ibm-803_P100-1999  alias: 0: ibm-803_P100-1999 1: ibm-803 2: cp803
164  name:ibm-838_P100-1995  alias: 0: ibm-838_P100-1995 1: ibm-838 2: IBM838 3: IBM-Thai 4: csIBMThai 5: cp838 6: 838 7: ibm-9030
165  name:ibm-870_P100-1995  alias: 0: ibm-870_P100-1995 1: ibm-870 2: IBM870 3: CP870 4: ebcdic-cp-roece 5: ebcdic-cp-yu 6: csIBM870
166  name:ibm-871_P100-1995  alias: 0: ibm-871_P100-1995 1: ibm-871 2: IBM871 3: ebcdic-cp-is 4: csIBM871 5: CP871 6: ebcdic-is 7: 871
167  name:ibm-875_P100-1995  alias: 0: ibm-875_P100-1995 1: ibm-875 2: IBM875 3: cp875 4: 875 5: x-IBM875
168  name:ibm-918_P100-1995  alias: 0: ibm-918_P100-1995 1: ibm-918 2: IBM918 3: CP918 4: ebcdic-cp-ar2 5: csIBM918
169  name:ibm-930_P120-1999  alias: 0: ibm-930_P120-1999 1: ibm-930 2: ibm-5026 3: IBM930 4: cp930 5: 930 6: x-IBM930 7: x-IBM930A
170  name:ibm-933_P110-1995  alias: 0: ibm-933_P110-1995 1: ibm-933 2: cp933 3: 933 4: x-IBM933
171  name:ibm-935_P110-1999  alias: 0: ibm-935_P110-1999 1: ibm-935 2: cp935 3: 935 4: x-IBM935
172  name:ibm-937_P110-1999  alias: 0: ibm-937_P110-1999 1: ibm-937 2: cp937 3: 937 4: x-IBM937
173  name:ibm-939_P120-1999  alias: 0: ibm-939_P120-1999 1: ibm-939 2: ibm-931 3: ibm-5035 4: IBM939 5: cp939 6: 939 7: x-IBM939 8: x-IBM939A
174  name:ibm-1025_P100-1995  alias: 0: ibm-1025_P100-1995 1: ibm-1025 2: cp1025 3: 1025 4: x-IBM1025
175  name:ibm-1026_P100-1995  alias: 0: ibm-1026_P100-1995 1: ibm-1026 2: IBM1026 3: CP1026 4: csIBM1026 5: 1026
176  name:ibm-1047_P100-1995  alias: 0: ibm-1047_P100-1995 1: ibm-1047 2: IBM1047 3: cp1047 4: 1047
177  name:ibm-1097_P100-1995  alias: 0: ibm-1097_P100-1995 1: ibm-1097 2: cp1097 3: 1097 4: x-IBM1097
178  name:ibm-1112_P100-1995  alias: 0: ibm-1112_P100-1995 1: ibm-1112 2: cp1112 3: 1112 4: x-IBM1112
179  name:ibm-1122_P100-1999  alias: 0: ibm-1122_P100-1999 1: ibm-1122 2: cp1122 3: 1122 4: x-IBM1122
180  name:ibm-1123_P100-1995  alias: 0: ibm-1123_P100-1995 1: ibm-1123 2: cp1123 3: 1123 4: x-IBM1123
181  name:ibm-1130_P100-1997  alias: 0: ibm-1130_P100-1997 1: ibm-1130
182  name:ibm-1132_P100-1998  alias: 0: ibm-1132_P100-1998 1: ibm-1132
183  name:ibm-1137_P100-1999  alias: 0: ibm-1137_P100-1999 1: ibm-1137
184  name:ibm-4517_P100-2005  alias: 0: ibm-4517_P100-2005 1: ibm-4517
185  name:ibm-1140_P100-1997  alias: 0: ibm-1140_P100-1997 1: ibm-1140 2: IBM01140 3: CCSID01140 4: CP01140 5: cp1140 6: ebcdic-us-37+euro
186  name:ibm-1141_P100-1997  alias: 0: ibm-1141_P100-1997 1: ibm-1141 2: IBM01141 3: CCSID01141 4: CP01141 5: cp1141 6: ebcdic-de-273+euro
187  name:ibm-1142_P100-1997  alias: 0: ibm-1142_P100-1997 1: ibm-1142 2: IBM01142 3: CCSID01142 4: CP01142 5: cp1142 6: ebcdic-dk-277+euro 7: ebcdic-no-277+euro
188  name:ibm-1143_P100-1997  alias: 0: ibm-1143_P100-1997 1: ibm-1143 2: IBM01143 3: CCSID01143 4: CP01143 5: cp1143 6: ebcdic-fi-278+euro 7: ebcdic-se-278+euro
189  name:ibm-1144_P100-1997  alias: 0: ibm-1144_P100-1997 1: ibm-1144 2: IBM01144 3: CCSID01144 4: CP01144 5: cp1144 6: ebcdic-it-280+euro
190  name:ibm-1145_P100-1997  alias: 0: ibm-1145_P100-1997 1: ibm-1145 2: IBM01145 3: CCSID01145 4: CP01145 5: cp1145 6: ebcdic-es-284+euro
191  name:ibm-1146_P100-1997  alias: 0: ibm-1146_P100-1997 1: ibm-1146 2: IBM01146 3: CCSID01146 4: CP01146 5: cp1146 6: ebcdic-gb-285+euro
192  name:ibm-1147_P100-1997  alias: 0: ibm-1147_P100-1997 1: ibm-1147 2: IBM01147 3: CCSID01147 4: CP01147 5: cp1147 6: ebcdic-fr-297+euro
193  name:ibm-1148_P100-1997  alias: 0: ibm-1148_P100-1997 1: ibm-1148 2: IBM01148 3: CCSID01148 4: CP01148 5: cp1148 6: ebcdic-international-500+euro
194  name:ibm-1149_P100-1997  alias: 0: ibm-1149_P100-1997 1: ibm-1149 2: IBM01149 3: CCSID01149 4: CP01149 5: cp1149 6: ebcdic-is-871+euro
195  name:ibm-1153_P100-1999  alias: 0: ibm-1153_P100-1999 1: ibm-1153 2: IBM1153 3: x-IBM1153
196  name:ibm-1154_P100-1999  alias: 0: ibm-1154_P100-1999 1: ibm-1154
197  name:ibm-1155_P100-1999  alias: 0: ibm-1155_P100-1999 1: ibm-1155
198  name:ibm-1156_P100-1999  alias: 0: ibm-1156_P100-1999 1: ibm-1156
199  name:ibm-1157_P100-1999  alias: 0: ibm-1157_P100-1999 1: ibm-1157
200  name:ibm-1158_P100-1999  alias: 0: ibm-1158_P100-1999 1: ibm-1158
201  name:ibm-1160_P100-1999  alias: 0: ibm-1160_P100-1999 1: ibm-1160
202  name:ibm-1164_P100-1999  alias: 0: ibm-1164_P100-1999 1: ibm-1164
203  name:ibm-1364_P110-2007  alias: 0: ibm-1364_P110-2007 1: ibm-1364 2: x-IBM1364
204  name:ibm-1371_P100-1999  alias: 0: ibm-1371_P100-1999 1: ibm-1371 2: x-IBM1371
205  name:ibm-1388_P103-2001  alias: 0: ibm-1388_P103-2001 1: ibm-1388 2: ibm-9580 3: x-IBM1388
206  name:ibm-1390_P110-2003  alias: 0: ibm-1390_P110-2003 1: ibm-1390 2: x-IBM1390
207  name:ibm-1399_P110-2003  alias: 0: ibm-1399_P110-2003 1: ibm-1399 2: x-IBM1399
208  name:ibm-5123_P100-1999  alias: 0: ibm-5123_P100-1999 1: ibm-5123
209  name:ibm-8482_P100-1999  alias: 0: ibm-8482_P100-1999 1: ibm-8482
210  name:ibm-16684_P110-2003  alias: 0: ibm-16684_P110-2003 1: ibm-16684 2: ibm-20780
211  name:ibm-4899_P100-1998  alias: 0: ibm-4899_P100-1998 1: ibm-4899
212  name:ibm-4971_P100-1999  alias: 0: ibm-4971_P100-1999 1: ibm-4971
213  name:ibm-9067_X100-2005  alias: 0: ibm-9067_X100-2005 1: ibm-9067
214  name:ibm-12712_P100-1998  alias: 0: ibm-12712_P100-1998 1: ibm-12712 2: ebcdic-he
215  name:ibm-16804_X110-1999  alias: 0: ibm-16804_X110-1999 1: ibm-16804 2: ebcdic-ar
216  name:ibm-37_P100-1995,swaplfnl  alias: 0: ibm-37_P100-1995,swaplfnl 1: ibm-37-s390
217  name:ibm-1047_P100-1995,swaplfnl  alias: 0: ibm-1047_P100-1995,swaplfnl 1: ibm-1047-s390 2: IBM1047_LF
218  name:ibm-1140_P100-1997,swaplfnl  alias: 0: ibm-1140_P100-1997,swaplfnl 1: ibm-1140-s390
219  name:ibm-1141_P100-1997,swaplfnl  alias: 0: ibm-1141_P100-1997,swaplfnl 1: ibm-1141-s390 2: IBM1141_LF
220  name:ibm-1142_P100-1997,swaplfnl  alias: 0: ibm-1142_P100-1997,swaplfnl 1: ibm-1142-s390
221  name:ibm-1143_P100-1997,swaplfnl  alias: 0: ibm-1143_P100-1997,swaplfnl 1: ibm-1143-s390
222  name:ibm-1144_P100-1997,swaplfnl  alias: 0: ibm-1144_P100-1997,swaplfnl 1: ibm-1144-s390
223  name:ibm-1145_P100-1997,swaplfnl  alias: 0: ibm-1145_P100-1997,swaplfnl 1: ibm-1145-s390
224  name:ibm-1146_P100-1997,swaplfnl  alias: 0: ibm-1146_P100-1997,swaplfnl 1: ibm-1146-s390
225  name:ibm-1147_P100-1997,swaplfnl  alias: 0: ibm-1147_P100-1997,swaplfnl 1: ibm-1147-s390
226  name:ibm-1148_P100-1997,swaplfnl  alias: 0: ibm-1148_P100-1997,swaplfnl 1: ibm-1148-s390
227  name:ibm-1149_P100-1997,swaplfnl  alias: 0: ibm-1149_P100-1997,swaplfnl 1: ibm-1149-s390
228  name:ibm-1153_P100-1999,swaplfnl  alias: 0: ibm-1153_P100-1999,swaplfnl 1: ibm-1153-s390
229  name:ibm-12712_P100-1998,swaplfnl  alias: 0: ibm-12712_P100-1998,swaplfnl 1: ibm-12712-s390
230  name:ibm-16804_X110-1999,swaplfnl  alias: 0: ibm-16804_X110-1999,swaplfnl 1: ibm-16804-s390
231  name:ebcdic-xml-us  alias: 0: ebcdic-xml-us
 

 类似资料: