W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2009

XHR LC comment: header encoding

From: Julian Reschke <julian.reschke@gmx.de>
Date: Mon, 07 Dec 2009 16:42:31 +0100
Message-ID: <4B1D2267.6060003@gmx.de>
To: public-Webapps@w3.org

I think XHR needs to elaborate on how non-ASCII characters in request 
headers are put on the wire, and how non-ASCII characters in response 
headers are transformed back to Javascript characters.

For request headers, I would assume that the character encoding is 
ISO-8859-1, and if a character can't be encoded using ISO-8859-1, some 
kind of error handling occurs (ignore the character/ignore the 

For response headers, I'd expect that the octet sequence is decoded 
using ISO-8859-1; so no specific error handling would be needed 
(although the result may be funny when the intended encoding was 
something different).

Best regards, Julian
Received on Monday, 7 December 2009 15:43:07 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:21 UTC