W3C home > Mailing lists > Public > www-archive@w3.org > March 2006

Re: XMLHttpRequest.setRequestHeader with non-ASCII strings

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 31 Mar 2006 11:28:32 +0200
To: Cameron McCormack <cam@mcc.id.au>
Cc: www-archive@w3.org
Message-ID: <n7tp22pfdcieah7bavf38p4imm4odsl2l4@hive.bjoern.hoehrmann.de>

* Cameron McCormack wrote:
>I asked on #webapi the other day what XHR should do if setRequestHeader
>is called with strings that contain non-ASCII characters, since that's
>not allowed by HTTP.  Anne suggested I make a test, so here is one
>(temporarily, at least):
>
>  http://arc.mcc.id.au:40001/

The following cases would be interesting aswell:

  * U+20AC - the euro currency symbol which
    is in Windows-1252 but not in ISO-8859-1

  * the sequence 'o' followed by U+0308 which
    is the NFD form of U+00F6 (&ouml;)

  * \udb40\udc7f, which is a surrogate pair
    for U+E007F

  * the characters ' ', '?', ':'

  * CRLF

In name in value. FWIW.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Friday, 31 March 2006 09:28:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 November 2012 14:17:55 GMT