* Avoid misdetecting windows-1252 English as windows-1254. * Avoid misdetecting windows-1252 English as IBM866. * Avoid misdetecting windows-1252 English as GBK or EUC-KR. * Improve Chinese and Japanese detection by not giving single-byte encodings score for letter next to digit. * Improve Italian, Portuguese, Castilian, Catalan, and Galician detection by taking into account ordinal indicator use. * Reduce lookup table size. Differential Revision: https://phabricator.services.mozilla.com/D73237
15 lines
390 B
HTML
15 lines
390 B
HTML
<!doctype html>
|
|
<title>fi windows-1252</title>
|
|
<script src=/resources/testharness.js></script>
|
|
<script src=/resources/testharnessreport.js></script>
|
|
<p>Nº1</p>
|
|
<script>
|
|
setup({explicit_done:true});
|
|
onload = function() {
|
|
test(function() {
|
|
assert_equals(document.characterSet, "windows-1252", 'Expected windows-1252');
|
|
}, "Check detection result");
|
|
done();
|
|
};
|
|
</script>
|