char-decoding-mac.html revision fd5c6425ce58eb75211be7718d5dee960842a37e
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
12description("This tests decoding characters in various character sets.");
13
14// Legacy Mac encodings.
15testDecode('mac', '%C3', 'U+221A');
16testDecode('macintosh', '%C3', 'U+221A');
17testDecode('MacRoman', '%C3', 'U+221A');
18testDecode('x-mac-greek', '%B0', 'U+0391');
19testDecode('x-mac-ukrainian', '%80', 'U+0410');
20testDecode('x-mac-cyrillic', '%80', 'U+0410');
21testDecode('mac-cyrillic', '%80', 'U+0410');
22testDecode('x-mac-centraleurroman', '%81', 'U+0100');
23testDecode('x-mac-ce', '%81', 'U+0100');
24testDecode('x-mac-turkish', '%81', 'U+00C5');
25
26successfullyParsed = true;
27
28</script>
29<script src="/js/resources/js-test-post.js"></script>
30</body>
31</html>
32