"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"