1<html> 2<head> 3<meta name="description" content="how to set charset=utf-8 on HTML docs"> 4<meta http-equiv="content-type" content="text/html; charset=windows-1255"> 5</head> 6<body> 7<pre id="log"></pre> 8<script> 9function log(message) 10{ 11 document.getElementById("log").innerText += message + "\n"; 12} 13 14if (window.layoutTestController) 15 layoutTestController.dumpAsText(); 16 17if (document.inputEncoding == "windows-1255") 18 log("PASS: " + document.inputEncoding); 19else 20 log("FAIL: " + document.inputEncoding); 21</script> 22<p>This test checks that charset sniffer does not get confused by the text that contains charset wording.</p> 23</body> 24</html> 25