1 <htm> 2 3 <head> 4 <meta http-equiv="content-language" content="en-us"> 5 <meta http-equiv='content-type' content='text/htm; charset=windows-1256'> 6 <script language="javascript"> 7 if (navigator.appName == "Netscape") 8 { 9 document.write("<meta http-equiv='content-type' content='text/htm; charset=x-user-defined'>"); 10 } 11 </script> 12 </head> 13 14 <body> 15 <p>Test a particular example of broken markup that was making us ignore a charset declaration.</p> 16 <script> 17 if (window.layoutTestController) 18 layoutTestController.dumpAsText(); 19 20 var charset = document.characterSet; 21 if (!charset) 22 charset = document.charset; 23 if (!charset) 24 charset = document.inputEncoding; 25 document.write("Encoding: " + charset + " (should be windows-1256)"); 26 </script> 27 </body> 28 </htm> 29