| <html> |
| <head> |
| <meta name="description" content="how to set charset=utf-8 on HTML docs"> |
| <meta http-equiv="content-type" content="text/html; charset=windows-1255"> |
| </head> |
| <body> |
| <pre id="log"></pre> |
| <script> |
| function log(message) |
| { |
| document.getElementById("log").innerText += message + "\n"; |
| } |
| |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| |
| if (document.inputEncoding == "windows-1255") |
| log("PASS: " + document.inputEncoding); |
| else |
| log("FAIL: " + document.inputEncoding); |
| </script> |
| <p>This test checks that charset sniffer does not get confused by the text that contains charset wording.</p> |
| </body> |
| </html> |