ÿþ<html> <head> <script> if (window.testRunner) { testRunner.dumpAsText() testRunner.waitUntilDone(); } function runTest() { var f = document.getElementById('theFrame'); var r = document.getElementById('result'); var o = f.contentDocument.getElementById('output').firstChild; if (o.nodeValue == '\u2122\u5341') r.innerHTML = "SUCCESS: query param is converted to UTF-8"; else r.innerHTML = "FAILURE: query param is not converted to UTF-8. value=" + o.nodeValue; if (window.testRunner) testRunner.notifyDone(); } </script> </head> <body onload="runTest()"> <iframe style="display: none;" id="theFrame" src="resources/echo-query-param.php?q=&#x2122;&#x5341;"></iframe> <div>This test is for <a href="https://bugs.webkit.org/show_bug.cgi?id=21635">bug 21635</a>. The query parameter in non-UTF-8 Unicode pages (UTF-7,16,32) should be converted to UTF-8 before a request is made to a server. <div id="result"></div> </html>