Home | History | Annotate | Download | only in encoding
      1 <html>
      2 <head>
      3 <link rel="stylesheet" href="../js/resources/js-test-style.css">
      4 <script src="../js/resources/js-test-pre.js"></script>
      5 <script src="resources/char-decoding-utils.js"></script>
      6 </head>
      7 <body>
      8 <p id="description"></p>
      9 <div id="console"></div>
     10 <script>
     11 
     12 description("This tests decoding characters in various character sets.");
     13 
     14 // Legacy Mac encodings.
     15 testDecode('mac', '%C3', 'U+221A');
     16 testDecode('macintosh', '%C3', 'U+221A');
     17 testDecode('MacRoman', '%C3', 'U+221A');
     18 testDecode('x-mac-greek', '%B0', 'U+0391');
     19 testDecode('x-mac-ukrainian', '%80', 'U+0410');
     20 testDecode('x-mac-cyrillic', '%80', 'U+0410');
     21 testDecode('mac-cyrillic', '%80', 'U+0410');
     22 testDecode('x-mac-centraleurroman', '%81', 'U+0100');
     23 testDecode('x-mac-ce', '%81', 'U+0100');
     24 testDecode('x-mac-turkish', '%81', 'U+00C5');
     25 
     26 successfullyParsed = true;
     27 
     28 </script>
     29 <script src="../js/resources/js-test-post.js"></script>
     30 </body>
     31 </html>
     32