summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--encoding.js94
-rw-r--r--encoding_gb.js4
-rw-r--r--encoding_jis.js6
3 files changed, 58 insertions, 46 deletions
diff --git a/encoding.js b/encoding.js
index ff7a99b..fce904e 100644
--- a/encoding.js
+++ b/encoding.js
@@ -1,19 +1,23 @@
1function decode_charsets( str, encoding ) { 1function decode_charsets( str, encoding ) {
2 var outstring = "", map;
3
4 if( encoding == "iso-2022-jp" ) { 2 if( encoding == "iso-2022-jp" ) {
5 return decode_jis( str ); 3 return decode_jis( str );
6 } else if( encoding == "gb2312" ) { 4 } else if( encoding == "gb2312" ) {
7 return decode_gb2312( str ); 5 return decode_gb2312( str );
8 } 6 }
9 7
10 map = encodings[encoding] || enc_8859_1; 8 var map = encodings[encoding] || enc_8859_1;
9 var outchars = [];
11 10
12 for( var i=0; i< str.length; ++i ) { 11 for( var i=0; i< str.length; ++i ) {
13 var append = str.charCodeAt(i) & 0xff; 12 var append = str.charCodeAt(i) & 0xff;
14 outstring += String.fromCharCode( append < 128 ? append : map[ append - 128 ] ); 13 if( append >= 128 && map[ append - 128 ] ) {
14 append = map[ append - 128 ] & 0xffff;
15 }
16 outchars.push( String.fromCharCode( append ) );
15 } 17 }
16 18
19 var outstring = outchars.join( '' );
20
17 if( encoding == "utf8" || encoding == "utf-8" ) { 21 if( encoding == "utf8" || encoding == "utf-8" ) {
18 return decodeURIComponent( escape( outstring ) ); 22 return decodeURIComponent( escape( outstring ) );
19 } else if ( encoding == "ibm864" ) { 23 } else if ( encoding == "ibm864" ) {
@@ -25,11 +29,15 @@ function decode_charsets( str, encoding ) {
25 29
26function decode_quotedprintable( str ) { 30function decode_quotedprintable( str ) {
27 var lines = str.replace( /_/g, " ").split( "=" ); 31 var lines = str.replace( /_/g, " ").split( "=" );
28 var outstring = lines[0]; 32 var outstring = [ lines[0] ];
29 for( var i=1; i< lines.length; ++i ) { 33 for( var i=1; i< lines.length; ++i ) {
30 outstring += String.fromCharCode( parseInt( lines[i].substring(0,2), 16 ) ) + lines[i].substring( 2 ); 34 if( lines[i].charCodeAt(1) == 10 ) {
35 outstring.push( lines[i].substring( 2 ) );
36 } else {
37 outstring.push( String.fromCharCode( parseInt( lines[i].substring(0,2), 16 ) ), lines[i].substring( 2 ) )
38 }
31 } 39 }
32 return outstring; 40 return outstring.join( '' );
33} 41}
34 42
35function dec(x) { 43function dec(x) {
@@ -45,20 +53,20 @@ function dec(x) {
45 53
46function decode_base64( str ) { 54function decode_base64( str ) {
47 var tmp = 0, bits = 0; 55 var tmp = 0, bits = 0;
48 var outstring = ""; 56 var outstring = [];
49 57
50 for( var i=0; i<str.length; ++i) { 58 for( var i=0; i<str.length; ++i) {
51 var x = str.charCodeAt(i); 59 var x = str.charCodeAt(i);
52 var a = dec( x & 0xff ); 60 var a = dec( x & 0xff );
53 if(a<0) { 61 if(a<0) {
54 return outstring; 62 return outstring.join( '' );
55 } 63 }
56 tmp=(tmp<<6)|a; bits+=6; 64 tmp=(tmp<<6)|a; bits+=6;
57 if (bits >= 8) { 65 if (bits >= 8) {
58 outstring += String.fromCharCode( 0xff & ( tmp >> (bits -= 8) ) ); 66 outstring.push( String.fromCharCode( 0xff & ( tmp >> (bits -= 8) ) ) );
59 } 67 }
60 } 68 }
61 return outstring; 69 return outstring.join( '' );
62} 70}
63 71
64function decode_header( line ) { 72function decode_header( line ) {
@@ -76,47 +84,50 @@ function decode_header( line ) {
76 return line; 84 return line;
77} 85}
78 86
79var enc_8859_1=[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]; 87var enc_8859_1=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
80var enc_8859_10=[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,274,290,298,296,310,167,315,272,352,358,381,173,362,330,176,261,275,291,299,297,311,183,316,273,353,359,382,8213,363,331,256,193,194,195,196,197,198,302,268,201,280,203,278,205,206,207,208,325,332,211,212,213,214,360,216,370,218,219,220,221,222,223,257,225,226,227,228,229,230,303,269,233,281,235,279,237,238,239,240,326,333,243,244,245,246,361,248,371,250,251,252,253,254,312]; 88var enc_8859_2=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,260,728,321,0,317,346,0,0,352,350,356,377,0,381,379,0,261,731,322,0,318,347,711,0,353,351,357,378,733,382,380,340,0,0,258,0,313,262,0,268,0,280,0,282,0,0,270,272,323,327,0,0,336,0,0,344,366,0,368,0,0,354,0,341,0,0,259,0,314,263,0,269,0,281,0,283,0,0,271,273,324,328,0,0,337,0,0,345,367,0,369,0,0,355,729];
81var enc_8859_11=[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,3585,3586,3587,3588,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,3630,3631,3632,3633,3634,3635,3636,3637,3638,3639,3640,3641,3642,3647,3648,3649,3650,3651,3652,3653,3654,3655,3656,3657,3658,3659,3660,3661,3662,3663,3664,3665,3666,3667,3668,3669,3670,3671,3672,3673,3674,3675]; 89var enc_8859_3=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,294,728,0,0,-3,292,0,0,304,350,286,308,0,-3,379,0,295,0,0,0,0,293,0,0,305,351,287,309,0,-3,380,0,0,0,-3,0,266,264,0,0,0,0,0,0,0,0,0,-3,0,0,0,0,288,0,0,284,0,0,0,0,364,348,0,0,0,0,-3,0,267,265,0,0,0,0,0,0,0,0,0,-3,0,0,0,0,289,0,0,285,0,0,0,0,365,349,729];
82var enc_8859_13=[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,8221,162,163,164,8222,166,167,216,169,342,171,172,173,174,198,176,177,178,179,8220,181,182,183,248,185,343,187,188,189,190,230,260,302,256,262,196,197,280,274,268,201,377,278,290,310,298,315,352,323,325,211,332,213,214,215,370,321,346,362,220,379,381,223,261,303,257,263,228,229,281,275,269,233,378,279,291,311,299,316,353,324,326,243,333,245,246,247,371,322,347,363,252,380,382,8217]; 90var enc_8859_4=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,260,312,342,0,296,315,0,0,352,274,290,358,0,381,0,0,261,731,343,0,297,316,711,0,353,275,291,359,330,382,331,256,0,0,0,0,0,0,302,268,0,280,0,278,0,0,298,272,325,332,310,0,0,0,0,0,370,0,0,0,360,362,0,257,0,0,0,0,0,0,303,269,0,281,0,279,0,0,299,273,326,333,311,0,0,0,0,0,371,0,0,0,361,363,729];
83var enc_8859_14=[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,7682,7683,163,266,267,7690,167,7808,169,7810,7691,7922,173,174,376,7710,7711,288,289,7744,7745,182,7766,7809,7767,7811,7776,7923,7812,7813,7777,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,372,209,210,211,212,213,214,7786,216,217,218,219,220,221,374,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,373,241,242,243,244,245,246,7787,248,249,250,251,252,253,375,255]; 91var enc_8859_5=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,0,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,8470,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,167,1118,1119];
84var enc_8859_15=[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,8364,165,352,167,353,169,170,171,172,173,174,175,176,177,178,179,381,181,182,183,382,185,186,187,338,339,376,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]; 92var enc_8859_6=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-3,-3,-3,0,-3,-3,-3,-3,-3,-3,-3,1548,0,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,1563,-3,-3,-3,1567,-3,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,-3,-3,-3,-3,-3,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618];
85var enc_8859_16=[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,261,321,8364,8222,352,167,353,169,536,171,377,173,378,379,176,177,268,322,381,8221,182,183,382,269,537,187,338,339,376,380,192,193,194,258,196,262,198,199,200,201,202,203,204,205,206,207,272,323,210,211,212,336,214,346,368,217,218,219,220,280,538,223,224,225,226,259,228,263,230,231,232,233,234,235,236,237,238,239,273,324,242,243,244,337,246,347,369,249,250,251,252,281,539,255]; 93var enc_8859_7=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8216,8217,0,8364,8367,0,0,0,0,890,0,0,0,-3,8213,0,0,0,0,900,901,902,0,904,905,906,0,908,0,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,-3,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974];
86var enc_8859_2=[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,728,321,164,317,346,167,168,352,350,356,377,173,381,379,176,261,731,322,180,318,347,711,184,353,351,357,378,733,382,380,340,193,194,258,196,313,262,199,268,201,280,203,282,205,206,270,272,323,327,211,212,336,214,215,344,366,218,368,220,221,354,223,341,225,226,259,228,314,263,231,269,233,281,235,283,237,238,271,273,324,328,243,244,337,246,247,345,367,250,369,252,253,355,729]; 94var enc_8859_8=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-3,0,0,0,0,0,0,0,0,215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,247,0,0,0,0,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,8215,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,-3,-3,8206,8207];
87var enc_8859_3=[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,294,728,163,164,292,167,168,304,350,286,308,173,379,176,295,178,179,180,181,293,183,184,305,351,287,309,189,380,192,193,194,196,266,264,199,200,201,202,203,204,205,206,207,209,210,211,212,288,214,215,284,217,218,219,220,364,348,223,224,225,226,228,267,265,231,232,233,234,235,236,237,238,239,241,242,243,244,289,246,247,285,249,250,251,252,365,349,729]; 95var enc_8859_9=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,286,0,0,0,0,0,0,0,0,0,0,0,0,304,350,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,287,0,0,0,0,0,0,0,0,0,0,0,0,305,351,0];
88var enc_8859_4=[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,312,342,164,296,315,167,168,352,274,290,358,173,381,175,176,261,731,343,180,297,316,711,184,353,275,291,359,330,382,331,256,193,194,195,196,197,198,302,268,201,280,203,278,205,206,298,272,325,332,310,212,213,214,215,216,370,218,219,220,360,362,223,257,225,226,227,228,229,230,303,269,233,281,235,279,237,238,299,273,326,333,311,244,245,246,247,248,371,250,251,252,361,363,729]; 96var enc_8859_10=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,260,274,290,298,296,310,0,315,272,352,358,381,0,362,330,0,261,275,291,299,297,311,0,316,273,353,359,382,8213,363,331,256,0,0,0,0,0,0,302,268,0,280,0,278,0,0,0,0,325,332,0,0,0,0,360,0,370,0,0,0,0,0,0,257,0,0,0,0,0,0,303,269,0,281,0,279,0,0,0,0,326,333,0,0,0,0,361,0,371,0,0,0,0,0,312];
89var enc_8859_5=[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,173,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,8470,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,167,1118,1119]; 97var enc_8859_11=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3585,3586,3587,3588,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,3630,3631,3632,3633,3634,3635,3636,3637,3638,3639,3640,3641,3642,-3,-3,-3,-3,3647,3648,3649,3650,3651,3652,3653,3654,3655,3656,3657,3658,3659,3660,3661,3662,3663,3664,3665,3666,3667,3668,3669,3670,3671,3672,3673,3674,3675];
90var enc_8859_6=[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,164,1548,173,1563,1567,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618]; 98var enc_8859_13=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8221,0,0,0,8222,0,0,216,0,342,0,0,0,0,198,0,0,0,0,8220,0,0,0,248,0,343,0,0,0,0,230,260,302,256,262,0,0,280,274,268,0,377,278,290,310,298,315,352,323,325,0,332,0,0,0,370,321,346,362,0,379,381,0,261,303,257,263,0,0,281,275,269,0,378,279,291,311,299,316,353,324,326,0,333,0,0,0,371,322,347,363,0,380,382,8217];
91var enc_8859_7=[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,8216,8217,163,8364,8367,166,167,168,169,890,171,172,173,8213,176,177,178,179,900,901,902,183,904,905,906,187,908,189,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974]; 99var enc_8859_14=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7682,7683,0,266,267,7690,0,7808,0,7810,7691,7922,0,0,376,7710,7711,288,289,7744,7745,0,7766,7809,7767,7811,7776,7923,7812,7813,7777,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,372,0,0,0,0,0,0,7786,0,0,0,0,0,0,374,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,373,0,0,0,0,0,0,7787,0,0,0,0,0,0,375,0];
92var enc_8859_8=[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,162,163,164,165,166,167,168,169,215,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,247,187,188,189,190,8215,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,8206,8207]; 100var enc_8859_15=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8364,0,352,0,353,0,0,0,0,0,0,0,0,0,0,0,381,0,0,0,382,0,0,0,338,339,376,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
93var enc_8859_9=[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,286,209,210,211,212,213,214,215,216,217,218,219,220,304,350,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,287,241,242,243,244,245,246,247,248,249,250,251,252,305,351,255]; 101var enc_8859_16=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,260,261,321,8364,8222,352,0,353,0,536,0,377,0,378,379,0,0,268,322,381,8221,0,0,382,269,537,0,338,339,376,380,0,0,0,258,0,262,0,0,0,0,0,0,0,0,0,0,272,323,0,0,0,336,0,346,368,0,0,0,0,280,538,0,0,0,0,259,0,263,0,0,0,0,0,0,0,0,0,0,273,324,0,0,0,337,0,347,369,0,0,0,0,281,539,0];
94var enc_CP1250=[8364,65533,8218,65533,8222,8230,8224,8225,65533,8240,352,8249,346,356,381,377,65533,8216,8217,8220,8221,8226,8211,8212,65533,8482,353,8250,347,357,382,378,160,711,728,321,164,260,166,167,168,169,350,171,172,173,174,379,176,177,731,322,180,181,182,183,184,261,351,187,317,733,318,380,340,193,194,258,196,313,262,199,268,201,280,203,282,205,206,270,272,323,327,211,212,336,214,215,344,366,218,368,220,221,354,223,341,225,226,259,228,314,263,231,269,233,281,235,283,237,238,271,273,324,328,243,244,337,246,247,345,367,250,369,252,253,355,729]; 102var enc_CP037=[216,97,98,99,100,101,102,103,104,105,171,187,240,253,254,177,176,106,107,108,109,110,111,112,113,114,170,186,230,184,198,164,181,126,115,116,117,118,119,120,121,122,161,191,208,221,222,174,94,163,165,183,169,167,0,188,189,190,91,93,175,168,180,215,123,65,66,67,68,69,70,71,72,73,173,244,246,242,243,245,125,74,75,76,77,78,79,80,81,82,185,251,252,249,250,255,92,247,83,84,85,86,87,88,89,90,178,212,214,210,211,213,48,49,50,51,52,53,54,55,56,57,179,219,220,217,218,159];
95var enc_CP1251=[1026,1027,8218,1107,8222,8230,8224,8225,8364,8240,1033,8249,1034,1036,1035,1039,1106,8216,8217,8220,8221,8226,8211,8212,65533,8482,1113,8250,1114,1116,1115,1119,160,1038,1118,1032,164,1168,166,167,1025,169,1028,171,172,173,174,1031,176,177,1030,1110,1169,181,182,183,1105,8470,1108,187,1112,1029,1109,1111,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103]; 103var enc_CP1026=[216,97,98,99,100,101,102,103,104,105,171,187,125,96,166,177,176,106,107,108,109,110,111,112,113,114,170,186,230,184,198,164,181,246,115,116,117,118,119,120,121,122,161,191,93,36,64,174,162,163,165,183,169,167,0,188,189,190,172,124,175,168,180,215,231,65,66,67,68,69,70,71,72,73,173,244,126,242,243,245,287,74,75,76,77,78,79,80,81,82,185,251,92,249,250,255,252,247,83,84,85,86,87,88,89,90,178,212,35,210,211,213,48,49,50,51,52,53,54,55,56,57,179,219,34,217,218,159];
96var enc_CP1252=[8364,65533,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,65533,381,65533,65533,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,65533,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]; 104var enc_CP1250=[8364,-3,8218,-3,8222,8230,8224,8225,-3,8240,352,8249,346,356,381,377,-3,8216,8217,8220,8221,8226,8211,8212,-3,8482,353,8250,347,357,382,378,0,711,728,321,0,260,0,0,0,0,350,0,0,0,0,379,0,0,731,322,0,0,0,0,0,261,351,0,317,733,318,380,340,0,0,258,0,313,262,0,268,0,280,0,282,0,0,270,272,323,327,0,0,336,0,0,344,366,0,368,0,0,354,0,341,0,0,259,0,314,263,0,269,0,281,0,283,0,0,271,273,324,328,0,0,337,0,0,345,367,0,369,0,0,355,729];
97var enc_CP1253=[8364,65533,8218,402,8222,8230,8224,8225,65533,8240,65533,8249,65533,65533,65533,65533,65533,8216,8217,8220,8221,8226,8211,8212,65533,8482,65533,8250,65533,65533,65533,65533,160,901,902,163,164,165,166,167,168,169,65533,171,172,173,174,8213,176,177,178,179,900,181,182,183,904,905,906,187,908,189,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,65533,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,65533]; 105var enc_CP1251=[1026,1027,8218,1107,8222,8230,8224,8225,8364,8240,1033,8249,1034,1036,1035,1039,1106,8216,8217,8220,8221,8226,8211,8212,-3,8482,1113,8250,1114,1116,1115,1119,0,1038,1118,1032,0,1168,0,0,1025,0,1028,0,0,0,0,1031,0,0,1030,1110,1169,0,0,0,1105,8470,1108,0,1112,1029,1109,1111,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103];
98var enc_CP1254=[8364,65533,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,65533,65533,65533,65533,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,65533,65533,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,286,209,210,211,212,213,214,215,216,217,218,219,220,304,350,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,287,241,242,243,244,245,246,247,248,249,250,251,252,305,351,255]; 106var enc_CP1252=[8364,-3,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,-3,381,-3,-3,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,-3,382,376,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
99var enc_CP1255=[8364,65533,8218,402,8222,8230,8224,8225,710,8240,65533,8249,65533,65533,65533,65533,65533,8216,8217,8220,8221,8226,8211,8212,732,8482,65533,8250,65533,65533,65533,65533,160,161,162,163,8362,165,166,167,168,169,215,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,247,187,188,189,190,191,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,65533,1467,1468,1469,1470,1471,1472,1473,1474,1475,1520,1521,1522,1523,1524,65533,65533,65533,65533,65533,65533,65533,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,65533,65533,8206,8207,65533]; 107var enc_CP1253=[8364,-3,8218,402,8222,8230,8224,8225,-3,8240,-3,8249,-3,-3,-3,-3,-3,8216,8217,8220,8221,8226,8211,8212,-3,8482,-3,8250,-3,-3,-3,-3,0,901,902,0,0,0,0,0,0,0,-3,0,0,0,0,8213,0,0,0,0,900,0,0,0,904,905,906,0,908,0,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,-3,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974];
100var enc_CP1256=[8364,1662,8218,402,8222,8230,8224,8225,710,8240,1657,8249,338,1670,1688,1672,1711,8216,8217,8220,8221,8226,8211,8212,1705,8482,1681,8250,339,8204,8205,1722,160,1548,162,163,164,165,166,167,168,169,1726,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,1563,187,188,189,190,1567,1729,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,215,1591,1592,1593,1594,1600,1601,1602,1603,224,1604,226,1605,1606,1607,1608,231,232,233,234,235,1609,1610,238,239,1611,1612,1613,1614,244,1615,1616,247,1617,249,1618,251,252,8206,8207,1746]; 108var enc_CP1254=[8364,-3,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,-3,-3,-3,-3,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,-3,-3,376,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,286,0,0,0,0,0,0,0,0,0,0,0,0,304,350,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,287,0,0,0,0,0,0,0,0,0,0,0,0,305,351,0];
101var enc_CP1257=[8364,65533,8218,65533,8222,8230,8224,8225,65533,8240,65533,8249,65533,168,711,184,65533,8216,8217,8220,8221,8226,8211,8212,65533,8482,65533,8250,65533,175,731,65533,160,65533,162,163,164,65533,166,167,216,169,342,171,172,173,174,198,176,177,178,179,180,181,182,183,248,185,343,187,188,189,190,230,260,302,256,262,196,197,280,274,268,201,377,278,290,310,298,315,352,323,325,211,332,213,214,215,370,321,346,362,220,379,381,223,261,303,257,263,228,229,281,275,269,233,378,279,291,311,299,316,353,324,326,243,333,245,246,247,371,322,347,363,252,380,382,729]; 109var enc_CP1255=[8364,-3,8218,402,8222,8230,8224,8225,710,8240,-3,8249,-3,-3,-3,-3,-3,8216,8217,8220,8221,8226,8211,8212,732,8482,-3,8250,-3,-3,-3,-3,0,0,0,0,8362,0,0,0,0,0,215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,247,0,0,0,0,0,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,-3,1467,1468,1469,1470,1471,1472,1473,1474,1475,1520,1521,1522,1523,1524,-3,-3,-3,-3,-3,-3,-3,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,-3,-3,8206,8207];
102var enc_CP1258=[8364,65533,8218,402,8222,8230,8224,8225,710,8240,65533,8249,338,65533,65533,65533,65533,8216,8217,8220,8221,8226,8211,8212,732,8482,65533,8250,339,65533,65533,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,258,196,197,198,199,200,201,202,203,768,205,206,207,272,209,777,211,212,416,214,215,216,217,218,219,220,431,771,223,224,225,226,259,228,229,230,231,232,233,234,235,769,237,238,239,273,241,803,243,244,417,246,247,248,249,250,251,252,432,8363,255]; 110var enc_CP1256=[8364,1662,8218,402,8222,8230,8224,8225,710,8240,1657,8249,338,1670,1688,1672,1711,8216,8217,8220,8221,8226,8211,8212,1705,8482,1681,8250,339,8204,8205,1722,0,1548,0,0,0,0,0,0,0,0,1726,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1563,0,0,0,0,1567,1729,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,0,1591,1592,1593,1594,1600,1601,1602,1603,0,1604,0,1605,1606,1607,1608,0,0,0,0,0,1609,1610,0,0,1611,1612,1613,1614,0,1615,1616,0,1617,0,1618,0,0,8206,8207,1746];
103var enc_CP874=[8364,65533,65533,65533,65533,8230,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,8216,8217,8220,8221,8226,8211,8212,65533,65533,65533,65533,65533,65533,65533,65533,160,3585,3586,3587,3588,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,3630,3631,3632,3633,3634,3635,3636,3637,3638,3639,3640,3641,3642,65533,65533,65533,65533,3647,3648,3649,3650,3651,3652,3653,3654,3655,3656,3657,3658,3659,3660,3661,3662,3663,3664,3665,3666,3667,3668,3669,3670,3671,3672,3673,3674,3675,65533,65533,65533,65533]; 111var enc_CP1257=[8364,-3,8218,-3,8222,8230,8224,8225,-3,8240,-3,8249,-3,168,711,184,-3,8216,8217,8220,8221,8226,8211,8212,-3,8482,-3,8250,-3,175,731,-3,0,-3,0,0,0,-3,0,0,216,0,342,0,0,0,0,198,0,0,0,0,0,0,0,0,248,0,343,0,0,0,0,230,260,302,256,262,0,0,280,274,268,0,377,278,290,310,298,315,352,323,325,0,332,0,0,0,370,321,346,362,0,379,381,0,261,303,257,263,0,0,281,275,269,0,378,279,291,311,299,316,353,324,326,0,333,0,0,0,371,322,347,363,0,380,382,729];
112var enc_CP1258=[8364,-3,8218,402,8222,8230,8224,8225,710,8240,-3,8249,338,-3,-3,-3,-3,8216,8217,8220,8221,8226,8211,8212,732,8482,-3,8250,339,-3,-3,376,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,258,0,0,0,0,0,0,0,0,768,0,0,0,272,0,777,0,0,416,0,0,0,0,0,0,0,431,771,0,0,0,0,259,0,0,0,0,0,0,0,0,769,0,0,0,273,0,803,0,0,417,0,0,0,0,0,0,0,432,8363,0];
104var enc_CP437=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,186,191,8976,172,189,188,161,171,187,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745,8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160]; 113var enc_CP437=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,186,191,8976,172,189,188,161,171,187,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745,8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160];
114var enc_CP500=[216,97,98,99,100,101,102,103,104,105,171,187,240,253,254,177,176,106,107,108,109,110,111,112,113,114,170,186,230,184,198,164,181,126,115,116,117,118,119,120,121,122,161,191,208,221,222,174,162,163,165,183,169,167,0,188,189,190,172,124,175,168,180,215,123,65,66,67,68,69,70,71,72,73,173,244,246,242,243,245,125,74,75,76,77,78,79,80,81,82,185,251,252,249,250,255,92,247,83,84,85,86,87,88,89,90,178,212,214,210,211,213,48,49,50,51,52,53,54,55,56,57,179,219,220,217,218,159,];
105var enc_CP737=[913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,963,962,964,965,966,967,968,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,969,940,941,942,970,943,972,973,971,974,902,904,905,906,908,910,911,177,8805,8804,938,939,247,8776,176,8729,183,8730,8319,178,9632,160]; 115var enc_CP737=[913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,963,962,964,965,966,967,968,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,969,940,941,942,970,943,972,973,971,974,902,904,905,906,908,910,911,177,8805,8804,938,939,247,8776,176,8729,183,8730,8319,178,9632,160];
106var enc_CP775=[262,252,233,257,228,291,229,263,322,275,342,343,299,377,196,197,201,230,198,333,246,290,162,346,347,214,220,248,163,216,215,164,256,298,243,379,380,378,8221,166,169,174,172,189,188,321,171,187,9617,9618,9619,9474,9508,260,268,280,278,9571,9553,9559,9565,302,352,9488,9492,9524,9516,9500,9472,9532,370,362,9562,9556,9577,9574,9568,9552,9580,381,261,269,281,279,303,353,371,363,382,9496,9484,9608,9604,9612,9616,9600,211,223,332,323,245,213,181,324,310,311,315,316,326,274,325,8217,173,177,8220,190,182,167,247,8222,176,8729,183,185,179,178,9632,160]; 116var enc_CP775=[262,252,233,257,228,291,229,263,322,275,342,343,299,377,196,197,201,230,198,333,246,290,162,346,347,214,220,248,163,216,215,164,256,298,243,379,380,378,8221,166,169,174,172,189,188,321,171,187,9617,9618,9619,9474,9508,260,268,280,278,9571,9553,9559,9565,302,352,9488,9492,9524,9516,9500,9472,9532,370,362,9562,9556,9577,9574,9568,9552,9580,381,261,269,281,279,303,353,371,363,382,9496,9484,9608,9604,9612,9616,9600,211,223,332,323,245,213,181,324,310,311,315,316,326,274,325,8217,173,177,8220,190,182,167,247,8222,176,8729,183,185,179,178,9632,160];
107var enc_CP850=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,248,163,216,215,402,225,237,243,250,241,209,170,186,191,174,172,189,188,161,171,187,9617,9618,9619,9474,9508,193,194,192,169,9571,9553,9559,9565,162,165,9488,9492,9524,9516,9500,9472,9532,227,195,9562,9556,9577,9574,9568,9552,9580,164,240,208,202,203,200,305,205,206,207,9496,9484,9608,9604,166,204,9600,211,223,212,210,245,213,181,254,222,218,219,217,253,221,175,180,173,177,8215,190,182,167,247,184,176,168,183,185,179,178,9632,160]; 117var enc_CP850=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,248,163,216,215,402,225,237,243,250,241,209,170,186,191,174,172,189,188,161,171,187,9617,9618,9619,9474,9508,193,194,192,169,9571,9553,9559,9565,162,165,9488,9492,9524,9516,9500,9472,9532,227,195,9562,9556,9577,9574,9568,9552,9580,164,240,208,202,203,200,305,205,206,207,9496,9484,9608,9604,166,204,9600,211,223,212,210,245,213,181,254,222,218,219,217,253,221,175,180,173,177,8215,190,182,167,247,184,176,168,183,185,179,178,9632,160];
108var enc_CP852=[199,252,233,226,228,367,263,231,322,235,336,337,238,377,196,262,201,313,314,244,246,317,318,346,347,214,220,356,357,321,215,269,225,237,243,250,260,261,381,382,280,281,172,378,268,351,171,187,9617,9618,9619,9474,9508,193,194,282,350,9571,9553,9559,9565,379,380,9488,9492,9524,9516,9500,9472,9532,258,259,9562,9556,9577,9574,9568,9552,9580,164,273,272,270,203,271,327,205,206,283,9496,9484,9608,9604,354,366,9600,211,223,212,323,324,328,352,353,340,218,341,368,253,221,355,180,173,733,731,711,728,167,247,184,176,168,729,369,344,345,9632,160]; 118var enc_CP852=[199,252,233,226,228,367,263,231,322,235,336,337,238,377,196,262,201,313,314,244,246,317,318,346,347,214,220,356,357,321,215,269,225,237,243,250,260,261,381,382,280,281,172,378,268,351,171,187,9617,9618,9619,9474,9508,193,194,282,350,9571,9553,9559,9565,379,380,9488,9492,9524,9516,9500,9472,9532,258,259,9562,9556,9577,9574,9568,9552,9580,164,273,272,270,203,271,327,205,206,283,9496,9484,9608,9604,354,366,9600,211,223,212,323,324,328,352,353,340,218,341,368,253,221,355,180,173,733,731,711,728,167,247,184,176,168,729,369,344,345,9632,160];
109var enc_CP855=[1106,1026,1107,1027,1105,1025,1108,1028,1109,1029,1110,1030,1111,1031,1112,1032,1113,1033,1114,1034,1115,1035,1116,1036,1118,1038,1119,1039,1102,1070,1098,1066,1072,1040,1073,1041,1094,1062,1076,1044,1077,1045,1092,1060,1075,1043,171,187,9617,9618,9619,9474,9508,1093,1061,1080,1048,9571,9553,9559,9565,1081,1049,9488,9492,9524,9516,9500,9472,9532,1082,1050,9562,9556,9577,9574,9568,9552,9580,164,1083,1051,1084,1052,1085,1053,1086,1054,1087,9496,9484,9608,9604,1055,1103,9600,1071,1088,1056,1089,1057,1090,1058,1091,1059,1078,1046,1074,1042,1100,1068,8470,173,1099,1067,1079,1047,1096,1064,1101,1069,1097,1065,1095,1063,167,9632,160]; 119var enc_CP855=[1106,1026,1107,1027,1105,1025,1108,1028,1109,1029,1110,1030,1111,1031,1112,1032,1113,1033,1114,1034,1115,1035,1116,1036,1118,1038,1119,1039,1102,1070,1098,1066,1072,1040,1073,1041,1094,1062,1076,1044,1077,1045,1092,1060,1075,1043,171,187,9617,9618,9619,9474,9508,1093,1061,1080,1048,9571,9553,9559,9565,1081,1049,9488,9492,9524,9516,9500,9472,9532,1082,1050,9562,9556,9577,9574,9568,9552,9580,164,1083,1051,1084,1052,1085,1053,1086,1054,1087,9496,9484,9608,9604,1055,1103,9600,1071,1088,1056,1089,1057,1090,1058,1091,1059,1078,1046,1074,1042,1100,1068,8470,173,1099,1067,1079,1047,1096,1064,1101,1069,1097,1065,1095,1063,167,9632,160];
110var enc_CP857=[199,252,233,226,228,224,229,231,234,235,232,239,238,305,196,197,201,230,198,244,246,242,251,249,304,214,220,248,163,216,350,351,225,237,243,250,241,209,286,287,191,174,172,189,188,161,171,187,9617,9618,9619,9474,9508,193,194,192,169,9571,9553,9559,9565,162,165,9488,9492,9524,9516,9500,9472,9532,227,195,9562,9556,9577,9574,9568,9552,9580,164,186,170,202,203,200,65533,205,206,207,9496,9484,9608,9604,166,204,9600,211,223,212,210,245,213,181,65533,215,218,219,217,236,255,175,180,173,177,65533,190,182,167,247,184,176,168,183,185,179,178,9632,160]; 120var enc_CP857=[199,252,233,226,228,224,229,231,234,235,232,239,238,305,196,197,201,230,198,244,246,242,251,249,304,214,220,248,163,216,350,351,225,237,243,250,241,209,286,287,191,174,172,189,188,161,171,187,9617,9618,9619,9474,9508,193,194,192,169,9571,9553,9559,9565,162,165,9488,9492,9524,9516,9500,9472,9532,227,195,9562,9556,9577,9574,9568,9552,9580,164,186,170,202,203,200,-3,205,206,207,9496,9484,9608,9604,166,204,9600,211,223,212,210,245,213,181,-3,215,218,219,217,0,255,175,180,173,177,-3,190,182,167,247,184,176,168,183,185,179,178,9632,160];
111var enc_CP860=[199,252,233,226,227,224,193,231,234,202,232,205,212,236,195,194,201,192,200,244,245,242,218,249,204,213,220,162,163,217,8359,211,225,237,243,250,241,209,170,186,191,210,172,189,188,161,171,187,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745,8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160]; 121var enc_CP860=[199,252,233,226,227,224,193,231,234,202,232,205,212,236,195,194,201,192,200,244,245,242,218,249,204,213,220,162,163,217,8359,211,225,237,243,250,241,209,170,186,191,210,172,189,188,161,171,187,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745,8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160];
112var enc_CP861=[199,252,233,226,228,224,229,231,234,235,232,208,240,222,196,197,201,230,198,244,246,254,251,221,253,214,220,248,163,216,8359,402,225,237,243,250,193,205,211,218,191,8976,172,189,188,161,171,187,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745,8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160]; 122var enc_CP861=[199,252,233,226,228,224,229,231,234,235,232,208,240,222,196,197,201,230,198,244,246,254,251,221,253,214,220,248,163,216,8359,402,225,237,243,250,193,205,211,218,191,8976,172,189,188,161,171,187,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745,8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160];
113var enc_CP862=[1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,162,163,165,8359,402,225,237,243,250,241,209,170,186,191,8976,172,189,188,161,171,187,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745,8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160]; 123var enc_CP862=[1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,162,163,165,8359,402,225,237,243,250,241,209,170,186,191,8976,172,189,188,161,171,187,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745,8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160];
114var enc_CP863=[199,252,233,226,194,224,182,231,234,235,232,239,238,8215,192,167,201,200,202,244,203,207,251,249,164,212,220,162,163,217,219,402,166,180,243,250,168,184,179,175,206,8976,172,189,188,190,171,187,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745,8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160]; 124var enc_CP863=[199,252,233,226,194,224,182,231,234,235,232,239,238,8215,192,167,201,200,202,244,203,207,251,249,164,212,220,162,163,217,219,402,166,180,243,250,168,184,179,175,206,8976,172,189,188,190,171,187,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745,8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160];
115var enc_CP864=[176,183,8729,8730,9618,9472,9474,9532,9508,9516,9500,9524,9488,9484,9492,9496,946,8734,966,177,189,188,8776,171,187,65271,65272,65533,65533,65275,65276,65533,160,173,65154,163,164,65156,65533,65533,65166,65167,65173,65177,1548,65181,65185,65189,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,65233,1563,65201,65205,65209,1567,162,65152,65153,65155,65157,65226,65163,65165,65169,65171,65175,65179,65183,65187,65191,65193,65195,65197,65199,65203,65207,65211,65215,65217,65221,65227,65231,166,172,247,215,65225,1600,65235,65239,65243,65247,65251,65255,65259,65261,65263,65267,65213,65228,65230,65229,65249,65149,1617,65253,65257,65260,65264,65266,65232,65237,65269,65270,65245,65241,65265,9632,65533]; 125var enc_CP864=[176,183,8729,8730,9618,9472,9474,9532,9508,9516,9500,9524,9488,9484,9492,9496,946,8734,966,177,189,188,8776,171,187,65271,65272,-3,-3,65275,65276,-3,0,173,65154,0,0,65156,-3,-3,65166,65167,65173,65177,1548,65181,65185,65189,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,65233,1563,65201,65205,65209,1567,162,65152,65153,65155,65157,65226,65163,65165,65169,65171,65175,65179,65183,65187,65191,65193,65195,65197,65199,65203,65207,65211,65215,65217,65221,65227,65231,166,172,247,215,65225,1600,65235,65239,65243,65247,65251,65255,65259,65261,65263,65267,65213,65228,65230,65229,65249,65149,1617,65253,65257,65260,65264,65266,65232,65237,65269,65270,65245,65241,65265,9632,];
116var enc_CP865=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,248,163,216,8359,402,225,237,243,250,241,209,170,186,191,8976,172,189,188,161,171,164,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745,8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160]; 126var enc_CP865=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,248,163,216,8359,402,225,237,243,250,241,209,170,186,191,8976,172,189,188,161,171,164,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745,8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160];
117var enc_CP866=[1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1025,1105,1028,1108,1031,1111,1038,1118,176,8729,183,8730,8470,164,9632,160]; 127var enc_CP866=[1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1025,1105,1028,1108,1031,1111,1038,1118,176,8729,183,8730,8470,164,9632,160];
118var enc_CP869=[65533,65533,65533,65533,65533,65533,902,65533,183,172,166,8216,8217,904,8213,905,906,938,908,65533,65533,910,939,169,911,178,179,940,163,941,942,943,970,912,972,973,913,914,915,916,917,918,919,189,920,921,171,187,9617,9618,9619,9474,9508,922,923,924,925,9571,9553,9559,9565,926,927,9488,9492,9524,9516,9500,9472,9532,928,929,9562,9556,9577,9574,9568,9552,9580,931,932,933,934,935,936,937,945,946,947,9496,9484,9608,9604,948,949,9600,950,951,952,953,954,955,956,957,958,959,960,961,963,962,964,900,173,177,965,966,967,167,968,901,176,168,969,971,944,974,9632,160]; 128var enc_CP869=[-3,-3,-3,-3,-3,-3,902,-3,183,172,166,8216,8217,904,8213,905,906,938,908,-3,-3,910,939,169,911,178,179,940,163,941,942,943,970,912,972,973,913,914,915,916,917,918,919,189,920,921,171,187,9617,9618,9619,9474,9508,922,923,924,925,9571,9553,9559,9565,926,927,9488,9492,9524,9516,9500,9472,9532,928,929,9562,9556,9577,9574,9568,9552,9580,931,932,933,934,935,936,937,945,946,947,9496,9484,9608,9604,948,949,9600,950,951,952,953,954,955,956,957,958,959,960,961,963,962,964,900,173,177,965,966,967,167,968,901,176,168,969,971,944,974,9632,160];
119var enc_CP874=[8364,65533,65533,65533,65533,8230,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,8216,8217,8220,8221,8226,8211,8212,65533,65533,65533,65533,65533,65533,65533,65533,160,3585,3586,3587,3588,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,3630,3631,3632,3633,3634,3635,3636,3637,3638,3639,3640,3641,3642,65533,65533,65533,65533,3647,3648,3649,3650,3651,3652,3653,3654,3655,3656,3657,3658,3659,3660,3661,3662,3663,3664,3665,3666,3667,3668,3669,3670,3671,3672,3673,3674,3675,65533,65533,65533,65533]; 129var enc_CP874=[8364,-3,-3,-3,-3,8230,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,8216,8217,8220,8221,8226,8211,8212,-3,-3,-3,-3,-3,-3,-3,-3,0,3585,3586,3587,3588,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,3630,3631,3632,3633,3634,3635,3636,3637,3638,3639,3640,3641,3642,-3,-3,-3,-3,3647,3648,3649,3650,3651,3652,3653,3654,3655,3656,3657,3658,3659,3660,3661,3662,3663,3664,3665,3666,3667,3668,3669,3670,3671,3672,3673,3674,3675];
130var enc_CP875=[901,97,98,99,100,101,102,103,104,105,945,946,947,948,949,950,176,106,107,108,109,110,111,112,113,114,951,952,953,954,955,956,180,126,115,116,117,118,119,120,121,122,957,958,959,960,961,963,163,940,941,942,970,943,972,973,971,974,962,964,965,966,967,968,123,65,66,67,68,69,70,71,72,73,173,969,912,944,8216,8213,125,74,75,76,77,78,79,80,81,82,177,189,26,903,8217,166,92,26,83,84,85,86,87,88,89,90,178,167,26,26,171,172,48,49,50,51,52,53,54,55,56,57,179,169,26,26,187,159];
120var enc_koi8_r=[9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9600,9604,9608,9612,9616,9617,9618,9619,8992,9632,8729,8730,8776,8804,8805,160,8993,176,178,183,247,9552,9553,9554,1105,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,1025,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,169,1102,1072,1073,1094,1076,1077,1092,1075,1093,1080,1081,1082,1083,1084,1085,1086,1087,1103,1088,1089,1090,1091,1078,1074,1100,1099,1079,1096,1101,1097,1095,1098,1070,1040,1041,1062,1044,1045,1060,1043,1061,1048,1049,1050,1051,1052,1053,1054,1055,1071,1056,1057,1058,1059,1046,1042,1068,1067,1047,1064,1069,1065,1063,1066]; 131var enc_koi8_r=[9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9600,9604,9608,9612,9616,9617,9618,9619,8992,9632,8729,8730,8776,8804,8805,160,8993,176,178,183,247,9552,9553,9554,1105,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,1025,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,169,1102,1072,1073,1094,1076,1077,1092,1075,1093,1080,1081,1082,1083,1084,1085,1086,1087,1103,1088,1089,1090,1091,1078,1074,1100,1099,1079,1096,1101,1097,1095,1098,1070,1040,1041,1062,1044,1045,1060,1043,1061,1048,1049,1050,1051,1052,1053,1054,1055,1071,1056,1057,1058,1059,1046,1042,1068,1067,1047,1064,1069,1065,1063,1066];
121var enc_koi8_u=[9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9600,9604,9608,9612,9616,9617,9618,9619,8992,9632,8729,8730,8776,8804,8805,160,8993,176,178,183,247,9552,9553,9554,1105,1108,9556,1110,1111,9559,9560,9561,9562,9563,1169,9565,9566,9567,9568,9569,1025,1028,9571,1030,1031,9574,9575,9576,9577,9578,1168,9579,9580,169,1102,1072,1073,1094,1076,1077,1092,1075,1093,1080,1081,1082,1083,1084,1085,1086,1087,1103,1088,1089,1090,1091,1078,1074,1100,1099,1079,1096,1101,1097,1095,1098,1070,1040,1041,1062,1044,1045,1060,1043,1061,1048,1049,1050,1051,1052,1053,1054,1055,1071,1056,1057,1058,1059,1046,1042,1068,1067,1047,1064,1069,1065,1063,1066]; 132var enc_koi8_u=[9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9600,9604,9608,9612,9616,9617,9618,9619,8992,9632,8729,8730,8776,8804,8805,160,8993,176,178,183,247,9552,9553,9554,1105,1108,9556,1110,1111,9559,9560,9561,9562,9563,1169,9565,9566,9567,9568,9569,1025,1028,9571,1030,1031,9574,9575,9576,9577,9578,1168,9579,9580,169,1102,1072,1073,1094,1076,1077,1092,1075,1093,1080,1081,1082,1083,1084,1085,1086,1087,1103,1088,1089,1090,1091,1078,1074,1100,1099,1079,1096,1101,1097,1095,1098,1070,1040,1041,1062,1044,1045,1060,1043,1061,1048,1049,1050,1051,1052,1053,1054,1055,1071,1056,1057,1058,1059,1046,1042,1068,1067,1047,1064,1069,1065,1063,1066];
122 133
@@ -130,6 +141,7 @@ var encodings = {
130 "koi8-r":enc_koi8_r,"koi8-u":enc_koi8_u, 141 "koi8-r":enc_koi8_r,"koi8-u":enc_koi8_u,
131 "ibm437":enc_CP437,"ibm737":enc_CP737,"ibm775":enc_CP775,"ibm850":enc_CP850,"ibm852":enc_CP852,"ibm855":enc_CP855,"ibm857":enc_CP857, 142 "ibm437":enc_CP437,"ibm737":enc_CP737,"ibm775":enc_CP775,"ibm850":enc_CP850,"ibm852":enc_CP852,"ibm855":enc_CP855,"ibm857":enc_CP857,
132 "ibm860":enc_CP860,"ibm861":enc_CP861,"ibm862":enc_CP862,"ibm863":enc_CP863,"ibm864":enc_CP864,"ibm865":enc_CP865,"ibm866":enc_CP866, 143 "ibm860":enc_CP860,"ibm861":enc_CP861,"ibm862":enc_CP862,"ibm863":enc_CP863,"ibm864":enc_CP864,"ibm865":enc_CP865,"ibm866":enc_CP866,
133 "cp869": enc_CP869,"cp-gr": enc_CP869,"ibm869":enc_CP869,"windows-874": enc_CP874,"cp874":enc_CP874,"ibm874":enc_CP874 144 "cp869": enc_CP869,"cp-gr": enc_CP869,"ibm869":enc_CP869,"windows-874": enc_CP874,"cp874":enc_CP874,"ibm874":enc_CP874,
145 "cp037": enc_CP037,"cp500": enc_CP500,"cp875":enc_CP875,"cp1026":enc_CP1026
134}; 146};
135 147
diff --git a/encoding_gb.js b/encoding_gb.js
index 228fae1..72c7253 100644
--- a/encoding_gb.js
+++ b/encoding_gb.js
@@ -2,8 +2,8 @@
2// for codes 0x2121 - 0x296F and 0x3021 - 0x777E 2// for codes 0x2121 - 0x296F and 0x3021 - 0x777E
3// 3//
4// The unicode codes in second table have been normalized by 4// The unicode codes in second table have been normalized by
5// the amount of 19968 to save 5kBytes in this script, so the 5// the amount of 0x4e00 to save 5kBytes in this script, so the
6// actual value is 19968 + enc_gb2312_1[ x ] 6// actual value is 0x4e00 + enc_gb2312_1[ x ]
7 7
8function decode_gb2312( str ) { 8function decode_gb2312( str ) {
9 var outstring = ""; 9 var outstring = "";
diff --git a/encoding_jis.js b/encoding_jis.js
index 7550c7b..1858312 100644
--- a/encoding_jis.js
+++ b/encoding_jis.js
@@ -2,8 +2,8 @@
2// for codes 0x2121 - 0x2840 and 0x3021 - 0x7426 2// for codes 0x2121 - 0x2840 and 0x3021 - 0x7426
3// 3//
4// The unicode codes in second table have been normalized by 4// The unicode codes in second table have been normalized by
5// the amount of 19968 to save 5kBytes in this script, so the 5// the amount of 0x4e00 to save 5kBytes in this script, so the
6// actual value is 19968 + enc_jis_0208_1[ x ] 6// actual value is 0x4e00 + enc_jis_0208_1[ x ]
7 7
8var page = { 8var page = {
9 us_ascii : 0, 9 us_ascii : 0,
@@ -69,7 +69,7 @@ function decode_jis( str ) {
69} 69}
70 70
71var enc_jis_0201 = 71var enc_jis_0201 =
72[65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,165,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,8254,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65377,65378,65379,65380,65381,65382,65383,65384,65385,65386,65387,65388,65389,65390,65391,65392,65393,65394,65395,65396,65397,65398,65399,65400,65401,65402,65403,65404,65405,65406,65407,65408,65409,65410,65411,65412,65413,65414,65415,65416,65417,65418,65419,65420,65421,65422,65423,65424,65425,65426,65427,65428,65429,65430,65431,65432,65433,65434,65435,65436,65437,65438,65439]; 72[32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,165,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,8254,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65533,65377,65378,65379,65380,65381,65382,65383,65384,65385,65386,65387,65388,65389,65390,65391,65392,65393,65394,65395,65396,65397,65398,65399,65400,65401,65402,65403,65404,65405,65406,65407,65408,65409,65410,65411,65412,65413,65414,65415,65416,65417,65418,65419,65420,65421,65422,65423,65424,65425,65426,65427,65428,65429,65430,65431,65432,65433,65434,65435,65436,65437,65438,65439];
73 73
74var enc_jis_0208_0 = 74var enc_jis_0208_0 =
75[12288,12289,12290,65292,65294,12539,65306,65307,65311,65281,12443,12444,180,65344,168,65342,65507,65343,12541,12542,12445,12446,12291,20189,12293, 75[12288,12289,12290,65292,65294,12539,65306,65307,65311,65281,12443,12444,180,65344,168,65342,65507,65343,12541,12542,12445,12446,12291,20189,12293,