Home | History | Annotate | Download | only in encoding
      1 <html>
      2 <head>
      3 <meta http-equiv='Content-Type' content='text/html; charset=latin1'>
      4 </head>
      5 <body>
      6 <script>
      7   if (window.layoutTestController)
      8     layoutTestController.dumpAsText();
      9 </script>
     10 <p>We need to treat Latin-1 as if it were windows-1252, see <a href="https://bugs.webkit.org/show_bug.cgi?id=7602">bug 7602</a>.</p>
     11 <p>As entities: <span id='entities'>&#x80;&#x81;&#x83;&#x86;&#x87;</span></p>
     12 <script>document.write('<p>(escaped): ' + escape(document.getElementById('entities').innerHTML) + '</p>');</script><p>Inline: <span id='inline'></span></p>
     13 <script>document.write('<p>(escaped): ' + escape(document.getElementById('inline').innerHTML) + '</p>');</script><p>document.write of unicode escapes: <script>document.write('<span id="write">\x80\x81\u0083\u0086\u0087</span>');</script></p><script>document.write('<p>(escaped): ' + escape(document.getElementById('write').innerHTML) + '</p>');</script><p>innerHTML assignment of unicode escapes: <span id='inner'></span></p><script>document.getElementById('inner').innerHTML = '\x80\x81\u0083\u0086\u0087';</script><script>document.write('<p>(escaped): ' + escape(document.getElementById('inner').innerHTML) + '</p>');</script>
     14 </body>
     15 </html>
     16