This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16557 - Figure out bytes to code point mapping for statusText
Summary: Figure out bytes to code point mapping for statusText
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: XHR (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Anne
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-28 11:46 UTC by Anne
Modified: 2012-06-07 15:37 UTC (History)
3 users (show)

See Also:


Attachments

Description Anne 2012-03-28 11:46:33 UTC
Ideally this just uses "inflate" but if browsers are not doing that, it may have to be something ugly instead.
Comment 1 Anne 2012-06-07 15:27:37 UTC
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.)
Comment 2 Anne 2012-06-07 15:30:29 UTC
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.