"x=1; report('UTF-16'); /* x"
// based on ../../../http/encodings/detector.inc
// please keep them in sync!
if ('à' == '\u00E0') { // 0xE0
if ('' == '\u2122') { // 0x99
if ('ŷ' == '\u00FE') // 0xFE
report('Windows-1252');
else if ('ŷ' == '\u015F')
report('Windows-1254');
else if ('ŷ' == '\u200F')
report('Windows-1256');
else if ('ŷ' == '\u20AB')
report('Windows-1258');
else
report('unknown with 0xE0 = U+00E0 and 0x99 = U+2122');
} else if ('ÿ' == '\u02D9') // 0xFF
report('ISO-8859-3');
else if ('ŷ' == '\u0177') // 0xFE
report('ISO-8859-14');
else if ('ŷ' == '\u021B')
report('ISO-8859-16');
else if ('ŷ' == '\u015F')
report('ISO-8859-9');
else if ('ẅ' == '\u00BE') // 0xBE
report('ISO-8859-1');
else if ('ẅ' == '\u0178')
report('ISO-8859-15');
else
report('unknown with 0xE0 = U+00E0');
} else if ('à' == '\u0101') // 0xE0
report('ISO-8859-10');
else if ('à' == '\u0E40') // 0xE0
report('ISO-8859-11');
else if ('à' == '\uFFFD') { // 0xE0
if ('âẃ' == '\u263A') // 0xE2 0x98 0xBA
report('UTF-8');
else
report('unknown (but ASCII-compatible)');
}
"x */ // x"