00001
00002
00003
00004
00005 static const TDS_ENCODING canonic_charsets[] = {
00006 { "ISO-8859-1", 1, 1},
00007 { "UTF-8", 1, 4},
00008 { "UCS-2LE", 2, 2},
00009 { "UCS-2BE", 2, 2},
00010 { "ARMSCII-8", 1, 1},
00011 { "BIG-5", 1, 2},
00012 { "BIG5-HKSCS", 1, 2},
00013 { "C99", 1, 1},
00014 { "CHINESE", 1, 1},
00015 { "CN", 1, 1},
00016 { "CN-GB", 1, 2},
00017 { "CN-GB-ISOIR165", 1, 1},
00018 { "CP1133", 1, 1},
00019 { "CP1250", 1, 1},
00020 { "CP1251", 1, 1},
00021 { "CP1252", 1, 1},
00022 { "CP1253", 1, 1},
00023 { "CP1254", 1, 1},
00024 { "CP1255", 1, 1},
00025 { "CP1256", 1, 1},
00026 { "CP1257", 1, 1},
00027 { "CP1258", 1, 1},
00028 { "CP1361", 1, 2},
00029 { "CP437", 1, 1},
00030 { "CP850", 1, 1},
00031 { "CP862", 1, 1},
00032 { "CP866", 1, 1},
00033 { "CP874", 1, 1},
00034 { "CP932", 1, 2},
00035 { "CP936", 1, 2},
00036 { "CP949", 1, 2},
00037 { "CP950", 1, 2},
00038 { "EUC-JP", 1, 3},
00039 { "EUC-KR", 1, 2},
00040 { "EUC-TW", 1, 4},
00041 { "GB18030", 1, 4},
00042 { "GEORGIAN-ACADEMY", 1, 1},
00043 { "GEORGIAN-PS", 1, 1},
00044 { "HZ", 1, 1},
00045 { "ISO-2022-CN", 1, 4},
00046 { "ISO-2022-CN-EXT", 1, 4},
00047 { "ISO-2022-JP", 1, 1},
00048 { "ISO-2022-JP-1", 1, 1},
00049 { "ISO-2022-JP-2", 1, 1},
00050 { "ISO-2022-KR", 1, 2},
00051 { "ISO-8859-10", 1, 1},
00052 { "ISO-8859-13", 1, 1},
00053 { "ISO-8859-14", 1, 1},
00054 { "ISO-8859-15", 1, 1},
00055 { "ISO-8859-16", 1, 1},
00056 { "ISO-8859-2", 1, 1},
00057 { "ISO-8859-3", 1, 1},
00058 { "ISO-8859-4", 1, 1},
00059 { "ISO-8859-5", 1, 1},
00060 { "ISO-8859-6", 1, 1},
00061 { "ISO-8859-7", 1, 1},
00062 { "ISO-8859-8", 1, 1},
00063 { "ISO-8859-9", 1, 1},
00064 { "ISO-IR-14", 1, 1},
00065 { "ISO-IR-149", 1, 1},
00066 { "ISO-IR-159", 1, 1},
00067 { "ISO-IR-166", 1, 1},
00068 { "ISO-IR-87", 1, 1},
00069 { "JAVA", 1, 1},
00070 { "JISX0201-1976", 1, 1},
00071 { "KOI8-R", 1, 1},
00072 { "KOI8-RU", 1, 1},
00073 { "KOI8-T", 1, 1},
00074 { "KOI8-U", 1, 1},
00075 { "MAC", 1, 1},
00076 { "MACARABIC", 1, 1},
00077 { "MACCENTRALEUROPE", 1, 1},
00078 { "MACCROATIAN", 1, 1},
00079 { "MACCYRILLIC", 1, 1},
00080 { "MACGREEK", 1, 1},
00081 { "MACHEBREW", 1, 1},
00082 { "MACICELAND", 1, 1},
00083 { "MACROMANIA", 1, 1},
00084 { "MACTHAI", 1, 1},
00085 { "MACTURKISH", 1, 1},
00086 { "MACUKRAINE", 1, 1},
00087 { "MULELAO-1", 1, 1},
00088 { "NEXTSTEP", 1, 1},
00089 { "ROMAN8", 1, 1},
00090 { "SJIS", 1, 2},
00091 { "TCVN", 1, 1},
00092 { "UCS-2", 2, 2},
00093 { "UCS-2-INTERNAL", 2, 2},
00094 { "UCS-2-SWAPPED", 2, 2},
00095 { "UCS-4", 4, 4},
00096 { "UCS-4-INTERNAL", 4, 4},
00097 { "UCS-4-SWAPPED", 4, 4},
00098 { "UCS-4BE", 4, 4},
00099 { "UCS-4LE", 4, 4},
00100 { "US-ASCII", 1, 1},
00101 { "UTF-16", 2, 4},
00102 { "UTF-16BE", 2, 4},
00103 { "UTF-16LE", 2, 4},
00104 { "UTF-32", 4, 4},
00105 { "UTF-32BE", 4, 4},
00106 { "UTF-32LE", 4, 4},
00107 { "UTF-7", 1, 4},
00108 { "VISCII", 1, 1},
00109 {"", 0, 0}
00110 };
00111
00112 enum {
00113 TDS_CHARSET_ISO_8859_1 = 0,
00114 TDS_CHARSET_UTF_8 = 1,
00115 TDS_CHARSET_UCS_2LE = 2,
00116 TDS_CHARSET_UCS_2BE = 3,
00117 TDS_CHARSET_ARMSCII_8 = 4,
00118 TDS_CHARSET_BIG_5 = 5,
00119 TDS_CHARSET_BIG5_HKSCS = 6,
00120 TDS_CHARSET_C99 = 7,
00121 TDS_CHARSET_CHINESE = 8,
00122 TDS_CHARSET_CN = 9,
00123 TDS_CHARSET_CN_GB = 10,
00124 TDS_CHARSET_CN_GB_ISOIR165 = 11,
00125 TDS_CHARSET_CP1133 = 12,
00126 TDS_CHARSET_CP1250 = 13,
00127 TDS_CHARSET_CP1251 = 14,
00128 TDS_CHARSET_CP1252 = 15,
00129 TDS_CHARSET_CP1253 = 16,
00130 TDS_CHARSET_CP1254 = 17,
00131 TDS_CHARSET_CP1255 = 18,
00132 TDS_CHARSET_CP1256 = 19,
00133 TDS_CHARSET_CP1257 = 20,
00134 TDS_CHARSET_CP1258 = 21,
00135 TDS_CHARSET_CP1361 = 22,
00136 TDS_CHARSET_CP437 = 23,
00137 TDS_CHARSET_CP850 = 24,
00138 TDS_CHARSET_CP862 = 25,
00139 TDS_CHARSET_CP866 = 26,
00140 TDS_CHARSET_CP874 = 27,
00141 TDS_CHARSET_CP932 = 28,
00142 TDS_CHARSET_CP936 = 29,
00143 TDS_CHARSET_CP949 = 30,
00144 TDS_CHARSET_CP950 = 31,
00145 TDS_CHARSET_EUC_JP = 32,
00146 TDS_CHARSET_EUC_KR = 33,
00147 TDS_CHARSET_EUC_TW = 34,
00148 TDS_CHARSET_GB18030 = 35,
00149 TDS_CHARSET_GEORGIAN_ACADEMY = 36,
00150 TDS_CHARSET_GEORGIAN_PS = 37,
00151 TDS_CHARSET_HZ = 38,
00152 TDS_CHARSET_ISO_2022_CN = 39,
00153 TDS_CHARSET_ISO_2022_CN_EXT = 40,
00154 TDS_CHARSET_ISO_2022_JP = 41,
00155 TDS_CHARSET_ISO_2022_JP_1 = 42,
00156 TDS_CHARSET_ISO_2022_JP_2 = 43,
00157 TDS_CHARSET_ISO_2022_KR = 44,
00158 TDS_CHARSET_ISO_8859_10 = 45,
00159 TDS_CHARSET_ISO_8859_13 = 46,
00160 TDS_CHARSET_ISO_8859_14 = 47,
00161 TDS_CHARSET_ISO_8859_15 = 48,
00162 TDS_CHARSET_ISO_8859_16 = 49,
00163 TDS_CHARSET_ISO_8859_2 = 50,
00164 TDS_CHARSET_ISO_8859_3 = 51,
00165 TDS_CHARSET_ISO_8859_4 = 52,
00166 TDS_CHARSET_ISO_8859_5 = 53,
00167 TDS_CHARSET_ISO_8859_6 = 54,
00168 TDS_CHARSET_ISO_8859_7 = 55,
00169 TDS_CHARSET_ISO_8859_8 = 56,
00170 TDS_CHARSET_ISO_8859_9 = 57,
00171 TDS_CHARSET_ISO_IR_14 = 58,
00172 TDS_CHARSET_ISO_IR_149 = 59,
00173 TDS_CHARSET_ISO_IR_159 = 60,
00174 TDS_CHARSET_ISO_IR_166 = 61,
00175 TDS_CHARSET_ISO_IR_87 = 62,
00176 TDS_CHARSET_JAVA = 63,
00177 TDS_CHARSET_JISX0201_1976 = 64,
00178 TDS_CHARSET_KOI8_R = 65,
00179 TDS_CHARSET_KOI8_RU = 66,
00180 TDS_CHARSET_KOI8_T = 67,
00181 TDS_CHARSET_KOI8_U = 68,
00182 TDS_CHARSET_MAC = 69,
00183 TDS_CHARSET_MACARABIC = 70,
00184 TDS_CHARSET_MACCENTRALEUROPE = 71,
00185 TDS_CHARSET_MACCROATIAN = 72,
00186 TDS_CHARSET_MACCYRILLIC = 73,
00187 TDS_CHARSET_MACGREEK = 74,
00188 TDS_CHARSET_MACHEBREW = 75,
00189 TDS_CHARSET_MACICELAND = 76,
00190 TDS_CHARSET_MACROMANIA = 77,
00191 TDS_CHARSET_MACTHAI = 78,
00192 TDS_CHARSET_MACTURKISH = 79,
00193 TDS_CHARSET_MACUKRAINE = 80,
00194 TDS_CHARSET_MULELAO_1 = 81,
00195 TDS_CHARSET_NEXTSTEP = 82,
00196 TDS_CHARSET_ROMAN8 = 83,
00197 TDS_CHARSET_SJIS = 84,
00198 TDS_CHARSET_TCVN = 85,
00199 TDS_CHARSET_UCS_2 = 86,
00200 TDS_CHARSET_UCS_2_INTERNAL = 87,
00201 TDS_CHARSET_UCS_2_SWAPPED = 88,
00202 TDS_CHARSET_UCS_4 = 89,
00203 TDS_CHARSET_UCS_4_INTERNAL = 90,
00204 TDS_CHARSET_UCS_4_SWAPPED = 91,
00205 TDS_CHARSET_UCS_4BE = 92,
00206 TDS_CHARSET_UCS_4LE = 93,
00207 TDS_CHARSET_US_ASCII = 94,
00208 TDS_CHARSET_UTF_16 = 95,
00209 TDS_CHARSET_UTF_16BE = 96,
00210 TDS_CHARSET_UTF_16LE = 97,
00211 TDS_CHARSET_UTF_32 = 98,
00212 TDS_CHARSET_UTF_32BE = 99,
00213 TDS_CHARSET_UTF_32LE = 100,
00214 TDS_CHARSET_UTF_7 = 101,
00215 TDS_CHARSET_VISCII = 102,
00216 TDS_NUM_CHARSETS = 103
00217 };
00218
00219 static const CHARACTER_SET_ALIAS iconv_aliases[] = {
00220 { "646", 94 },
00221 { "850", 24 },
00222 { "862", 25 },
00223 { "866", 26 },
00224 { "ANSI_X3.4-1968", 94 },
00225 { "ANSI_X3.4-1986", 94 },
00226 { "ARABIC", 54 },
00227 { "ARMSCII-8", 4 },
00228 { "ASCII", 94 },
00229 { "ASMO-708", 54 },
00230 { "BIG-5", 5 },
00231 { "BIG-FIVE", 5 },
00232 { "BIG5", 5 },
00233 { "BIG5-HKSCS", 6 },
00234 { "BIG5HKSCS", 6 },
00235 { "BIGFIVE", 5 },
00236 { "C99", 7 },
00237 { "CHINESE", 8 },
00238 { "CN", 9 },
00239 { "CN-BIG5", 5 },
00240 { "CN-GB", 10 },
00241 { "CN-GB-ISOIR165", 11 },
00242 { "CP1133", 12 },
00243 { "CP1250", 13 },
00244 { "CP1251", 14 },
00245 { "CP1252", 15 },
00246 { "CP1253", 16 },
00247 { "CP1254", 17 },
00248 { "CP1255", 18 },
00249 { "CP1256", 19 },
00250 { "CP1257", 20 },
00251 { "CP1258", 21 },
00252 { "CP1361", 22 },
00253 { "CP367", 94 },
00254 { "CP437", 23 },
00255 { "CP819", 0 },
00256 { "CP850", 24 },
00257 { "CP862", 25 },
00258 { "CP866", 26 },
00259 { "CP874", 27 },
00260 { "CP932", 28 },
00261 { "CP936", 29 },
00262 { "CP949", 30 },
00263 { "CP950", 31 },
00264 { "CSASCII", 94 },
00265 { "CSBIG5", 5 },
00266 { "CSEUCKR", 33 },
00267 { "CSEUCPKDFMTJAPANESE", 32 },
00268 { "CSEUCTW", 34 },
00269 { "CSGB2312", 10 },
00270 { "CSHALFWIDTHKATAKANA", 64 },
00271 { "CSHPROMAN8", 83 },
00272 { "CSIBM866", 26 },
00273 { "CSISO14JISC6220RO", 58 },
00274 { "CSISO159JISX02121990", 60 },
00275 { "CSISO2022CN", 39 },
00276 { "CSISO2022JP", 41 },
00277 { "CSISO2022JP2", 43 },
00278 { "CSISO2022KR", 44 },
00279 { "CSISO57GB1988", 9 },
00280 { "CSISO58GB231280", 8 },
00281 { "CSISO87JISX0208", 62 },
00282 { "CSISOLATIN1", 0 },
00283 { "CSISOLATIN2", 50 },
00284 { "CSISOLATIN3", 51 },
00285 { "CSISOLATIN4", 52 },
00286 { "CSISOLATIN5", 57 },
00287 { "CSISOLATIN6", 45 },
00288 { "CSISOLATINARABIC", 54 },
00289 { "CSISOLATINCYRILLIC", 53 },
00290 { "CSISOLATINGREEK", 55 },
00291 { "CSISOLATINHEBREW", 56 },
00292 { "CSKOI8R", 65 },
00293 { "CSKSC56011987", 59 },
00294 { "CSMACINTOSH", 69 },
00295 { "CSPC850MULTILINGUAL", 24 },
00296 { "CSPC862LATINHEBREW", 25 },
00297 { "CSSHIFTJIS", 84 },
00298 { "CSUCS4", 89 },
00299 { "CSUNICODE", 86 },
00300 { "CSUNICODE11", 3 },
00301 { "CSUNICODE11UTF7", 101 },
00302 { "CSVISCII", 102 },
00303 { "CYRILLIC", 53 },
00304 { "ECMA-114", 54 },
00305 { "ECMA-118", 55 },
00306 { "ELOT_928", 55 },
00307 { "EUC-CN", 10 },
00308 { "EUC-JP", 32 },
00309 { "EUC-KR", 33 },
00310 { "EUC-TW", 34 },
00311 { "EUCCN", 10 },
00312 { "EUCJP", 32 },
00313 { "EUCKR", 33 },
00314 { "EUCTW", 34 },
00315 {"EXTENDED_UNIX_CODE_PACKED_FORMAT_FOR_JAPANESE", 32 },
00316 { "GB18030", 35 },
00317 { "GB2312", 10 },
00318 { "GBK", 29 },
00319 { "GB_1988-80", 9 },
00320 { "GB_2312-80", 8 },
00321 { "GEORGIAN-ACADEMY", 36 },
00322 { "GEORGIAN-PS", 37 },
00323 { "GREEK", 55 },
00324 { "GREEK8", 55 },
00325 { "HEBREW", 56 },
00326 { "HP-ROMAN8", 83 },
00327 { "HZ", 38 },
00328 { "HZ-GB-2312", 38 },
00329 { "IBM-CP1133", 12 },
00330 { "IBM367", 94 },
00331 { "IBM437", 23 },
00332 { "IBM819", 0 },
00333 { "IBM850", 24 },
00334 { "IBM862", 25 },
00335 { "IBM866", 26 },
00336 { "ISO-10646-UCS-2", 86 },
00337 { "ISO-10646-UCS-4", 89 },
00338 { "ISO-2022-CN", 39 },
00339 { "ISO-2022-CN-EXT", 40 },
00340 { "ISO-2022-JP", 41 },
00341 { "ISO-2022-JP-1", 42 },
00342 { "ISO-2022-JP-2", 43 },
00343 { "ISO-2022-KR", 44 },
00344 { "ISO-8859-1", 0 },
00345 { "ISO-8859-10", 45 },
00346 { "ISO-8859-13", 46 },
00347 { "ISO-8859-14", 47 },
00348 { "ISO-8859-15", 48 },
00349 { "ISO-8859-16", 49 },
00350 { "ISO-8859-2", 50 },
00351 { "ISO-8859-3", 51 },
00352 { "ISO-8859-4", 52 },
00353 { "ISO-8859-5", 53 },
00354 { "ISO-8859-6", 54 },
00355 { "ISO-8859-7", 55 },
00356 { "ISO-8859-8", 56 },
00357 { "ISO-8859-9", 57 },
00358 { "ISO-CELTIC", 47 },
00359 { "ISO-IR-100", 0 },
00360 { "ISO-IR-101", 50 },
00361 { "ISO-IR-109", 51 },
00362 { "ISO-IR-110", 52 },
00363 { "ISO-IR-126", 55 },
00364 { "ISO-IR-127", 54 },
00365 { "ISO-IR-138", 56 },
00366 { "ISO-IR-14", 58 },
00367 { "ISO-IR-144", 53 },
00368 { "ISO-IR-148", 57 },
00369 { "ISO-IR-149", 59 },
00370 { "ISO-IR-157", 45 },
00371 { "ISO-IR-159", 60 },
00372 { "ISO-IR-165", 11 },
00373 { "ISO-IR-166", 61 },
00374 { "ISO-IR-179", 46 },
00375 { "ISO-IR-199", 47 },
00376 { "ISO-IR-203", 48 },
00377 { "ISO-IR-226", 49 },
00378 { "ISO-IR-57", 9 },
00379 { "ISO-IR-58", 8 },
00380 { "ISO-IR-6", 94 },
00381 { "ISO-IR-87", 62 },
00382 { "ISO646-CN", 9 },
00383 { "ISO646-JP", 58 },
00384 { "ISO646-US", 94 },
00385 { "ISO8859-1", 0 },
00386 { "ISO8859-10", 45 },
00387 { "ISO8859-15", 48 },
00388 { "ISO8859-2", 50 },
00389 { "ISO8859-4", 52 },
00390 { "ISO8859-5", 53 },
00391 { "ISO8859-6", 54 },
00392 { "ISO8859-7", 55 },
00393 { "ISO8859-8", 56 },
00394 { "ISO8859-9", 57 },
00395 { "ISO_646.IRV:1991", 94 },
00396 { "ISO_8859-1", 0 },
00397 { "ISO_8859-10", 45 },
00398 { "ISO_8859-10:1992", 45 },
00399 { "ISO_8859-13", 46 },
00400 { "ISO_8859-14", 47 },
00401 { "ISO_8859-14:1998", 47 },
00402 { "ISO_8859-15", 48 },
00403 { "ISO_8859-15:1998", 48 },
00404 { "ISO_8859-16", 49 },
00405 { "ISO_8859-16:2000", 49 },
00406 { "ISO_8859-1:1987", 0 },
00407 { "ISO_8859-2", 50 },
00408 { "ISO_8859-2:1987", 50 },
00409 { "ISO_8859-3", 51 },
00410 { "ISO_8859-3:1988", 51 },
00411 { "ISO_8859-4", 52 },
00412 { "ISO_8859-4:1988", 52 },
00413 { "ISO_8859-5", 53 },
00414 { "ISO_8859-5:1988", 53 },
00415 { "ISO_8859-6", 54 },
00416 { "ISO_8859-6:1987", 54 },
00417 { "ISO_8859-7", 55 },
00418 { "ISO_8859-7:1987", 55 },
00419 { "ISO_8859-8", 56 },
00420 { "ISO_8859-8:1988", 56 },
00421 { "ISO_8859-9", 57 },
00422 { "ISO_8859-9:1989", 57 },
00423 { "JAVA", 63 },
00424 { "JIS0208", 62 },
00425 { "JISX0201-1976", 64 },
00426 { "JIS_C6220-1969-RO", 58 },
00427 { "JIS_C6226-1983", 62 },
00428 { "JIS_X0201", 64 },
00429 { "JIS_X0208", 62 },
00430 { "JIS_X0208-1983", 62 },
00431 { "JIS_X0208-1990", 62 },
00432 { "JIS_X0212", 60 },
00433 { "JIS_X0212-1990", 60 },
00434 { "JIS_X0212.1990-0", 60 },
00435 { "JOHAB", 22 },
00436 { "JP", 58 },
00437 { "KOI8-R", 65 },
00438 { "KOI8-RU", 66 },
00439 { "KOI8-T", 67 },
00440 { "KOI8-U", 68 },
00441 { "KOREAN", 59 },
00442 { "KSC_5601", 59 },
00443 { "KS_C_5601-1987", 59 },
00444 { "KS_C_5601-1989", 59 },
00445 { "L1", 0 },
00446 { "L2", 50 },
00447 { "L3", 51 },
00448 { "L4", 52 },
00449 { "L5", 57 },
00450 { "L6", 45 },
00451 { "L7", 46 },
00452 { "L8", 47 },
00453 { "LATIN1", 0 },
00454 { "LATIN2", 50 },
00455 { "LATIN3", 51 },
00456 { "LATIN4", 52 },
00457 { "LATIN5", 57 },
00458 { "LATIN6", 45 },
00459 { "LATIN7", 46 },
00460 { "LATIN8", 47 },
00461 { "MAC", 69 },
00462 { "MACARABIC", 70 },
00463 { "MACCENTRALEUROPE", 71 },
00464 { "MACCROATIAN", 72 },
00465 { "MACCYRILLIC", 73 },
00466 { "MACGREEK", 74 },
00467 { "MACHEBREW", 75 },
00468 { "MACICELAND", 76 },
00469 { "MACINTOSH", 69 },
00470 { "MACROMAN", 69 },
00471 { "MACROMANIA", 77 },
00472 { "MACTHAI", 78 },
00473 { "MACTURKISH", 79 },
00474 { "MACUKRAINE", 80 },
00475 { "MS-ANSI", 15 },
00476 { "MS-ARAB", 19 },
00477 { "MS-CYRL", 14 },
00478 { "MS-EE", 13 },
00479 { "MS-GREEK", 16 },
00480 { "MS-HEBR", 18 },
00481 { "MS-TURK", 17 },
00482 { "MS_KANJI", 84 },
00483 { "MULELAO-1", 81 },
00484 { "NEXTSTEP", 82 },
00485 { "R8", 83 },
00486 { "ROMAN8", 83 },
00487 { "SHIFT-JIS", 84 },
00488 { "SHIFT_JIS", 84 },
00489 { "SJIS", 84 },
00490 { "TCVN", 85 },
00491 { "TCVN-5712", 85 },
00492 { "TCVN5712-1", 85 },
00493 { "TCVN5712-1:1993", 85 },
00494 { "TIS-620", 61 },
00495 { "TIS620", 61 },
00496 { "TIS620-0", 61 },
00497 { "TIS620.2529-1", 61 },
00498 { "TIS620.2533-0", 61 },
00499 { "TIS620.2533-1", 61 },
00500 { "UCS-2", 86 },
00501 { "UCS-2-INTERNAL", 87 },
00502 { "UCS-2-SWAPPED", 88 },
00503 { "UCS-2BE", 3 },
00504 { "UCS-2LE", 2 },
00505 { "UCS-4", 89 },
00506 { "UCS-4-INTERNAL", 90 },
00507 { "UCS-4-SWAPPED", 91 },
00508 { "UCS-4BE", 92 },
00509 { "UCS-4LE", 93 },
00510 { "UCS2", 86 },
00511 { "UCS4", 89 },
00512 { "UHC", 30 },
00513 { "UNICODE-1-1", 3 },
00514 { "UNICODE-1-1-UTF-7", 101 },
00515 { "UNICODEBIG", 3 },
00516 { "UNICODELITTLE", 2 },
00517 { "US", 94 },
00518 { "US-ASCII", 94 },
00519 { "UTF-16", 95 },
00520 { "UTF-16BE", 96 },
00521 { "UTF-16LE", 97 },
00522 { "UTF-32", 98 },
00523 { "UTF-32BE", 99 },
00524 { "UTF-32LE", 100 },
00525 { "UTF-7", 101 },
00526 { "UTF-8", 1 },
00527 { "UTF16", 95 },
00528 { "UTF7", 101 },
00529 { "UTF8", 1 },
00530 { "VISCII", 102 },
00531 { "VISCII1.1-1", 102 },
00532 { "WINBALTRIM", 20 },
00533 { "WINDOWS-1250", 13 },
00534 { "WINDOWS-1251", 14 },
00535 { "WINDOWS-1252", 15 },
00536 { "WINDOWS-1253", 16 },
00537 { "WINDOWS-1254", 17 },
00538 { "WINDOWS-1255", 18 },
00539 { "WINDOWS-1256", 19 },
00540 { "WINDOWS-1257", 20 },
00541 { "WINDOWS-1258", 21 },
00542 { "WINDOWS-874", 27 },
00543 { "X0201", 64 },
00544 { "X0208", 62 },
00545 { "X0212", 60 },
00546 { "big5", 5 },
00547 { "cp1250", 13 },
00548 { "cp1251", 14 },
00549 { "cp1252", 15 },
00550 { "cp1253", 16 },
00551 { "cp1254", 17 },
00552 { "cp1255", 18 },
00553 { "cp1256", 19 },
00554 { "cp1257", 20 },
00555 { "cp1258", 21 },
00556 { "cp437", 23 },
00557 { "cp850", 24 },
00558 { "cp862", 25 },
00559 { "cp866", 26 },
00560 { "cp874", 27 },
00561 { "eucJP", 32 },
00562 { "eucKR", 33 },
00563 { "eucTW", 34 },
00564 { "hp15CN", 8 },
00565 { "iso81", 0 },
00566 { "iso815", 48 },
00567 { "iso82", 50 },
00568 { "iso83", 51 },
00569 { "iso84", 52 },
00570 { "iso85", 53 },
00571 { "iso86", 54 },
00572 { "iso87", 55 },
00573 { "iso88", 56 },
00574 { "iso88591", 0 },
00575 { "iso885915", 48 },
00576 { "iso88592", 50 },
00577 { "iso88593", 51 },
00578 { "iso88594", 52 },
00579 { "iso88595", 53 },
00580 { "iso88596", 54 },
00581 { "iso88597", 55 },
00582 { "iso88598", 56 },
00583 { "iso88599", 57 },
00584 { "iso89", 57 },
00585 { "roma8", 83 },
00586 { "roman8", 83 },
00587 { "sjis", 84 },
00588 { "thai8", 61 },
00589 { "tis620", 61 },
00590 { "ucs2", 86 },
00591 { "ucs4", 89 },
00592 { "utf8", 1 },
00593 {NULL, 0}
00594 };
00595
00596 static const CHARACTER_SET_ALIAS sybase_aliases[] = {
00597 { "ascii_8", 0 },
00598 { "big5", 5 },
00599 { "cp1250", 13 },
00600 { "cp1251", 14 },
00601 { "cp1252", 15 },
00602 { "cp1253", 16 },
00603 { "cp1254", 17 },
00604 { "cp1255", 18 },
00605 { "cp1256", 19 },
00606 { "cp1257", 20 },
00607 { "cp1258", 21 },
00608 { "cp437", 23 },
00609 { "cp850", 24 },
00610 { "cp862", 25 },
00611 { "cp866", 26 },
00612 { "cp874", 27 },
00613 { "cp932", 28 },
00614 { "cp936", 29 },
00615 { "cp949", 30 },
00616 { "cp950", 31 },
00617 { "greek8", 55 },
00618 { "iso10", 45 },
00619 { "iso13", 46 },
00620 { "iso14", 47 },
00621 { "iso15", 48 },
00622 { "iso646", 94 },
00623 { "iso88592", 50 },
00624 { "iso88595", 53 },
00625 { "iso88596", 54 },
00626 { "iso88597", 55 },
00627 { "iso88598", 56 },
00628 { "iso88599", 57 },
00629 { "iso_1", 0 },
00630 { "koi8", 65 },
00631 { "mac", 69 },
00632 { "mac_cyr", 73 },
00633 { "macgreek", 74 },
00634 { "macthai", 78 },
00635 { "macturk", 79 },
00636 { "roman8", 83 },
00637 { "sjis", 84 },
00638 { "tis620", 61 },
00639 { "utf8", 1 },
00640 {NULL, 0}
00641 };
00642