This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Ideally this just uses "inflate" but if browsers are not doing that, it may have to be something ugly instead.
Test: http://dump.testsuite.org/xhr/statustext-decoding.php Source: <?php header("HTTP/1.1 250 \xE2\x82\xAC"); ?> <script> x = new XMLHttpRequest() x.open("GET", "?trala", false) x.send("") alert(x.statusText) </script> Results: Opera and Internet Explorer conform to the specification; Firefox/Chrome/Safari do not. (Safari alerts "OK" rather than "€" by the way.)
My assertion above that certain browsers conform to the specification is obviously false as it does not define what to do at the moment. But given these results I think that is the most logical way forward.
http://dvcs.w3.org/hg/xhr/rev/5acbf9c93959