W3C home > Mailing lists > Public > public-webapi@w3.org > May 2007

Re: [XMLHttpRequest] responseText decoding

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 02 May 2007 15:54:07 +0200
To: "Web API WG (public)" <public-webapi@w3.org>
Message-ID: <op.trpcwho964w2qv@id-c0020>

On Wed, 21 Mar 2007 12:29:09 +0100, Anne van Kesteren <annevk@opera.com>  
wrote:
> However, for responseText the situation is a bit tricker.  
> Implementations currently implement something along the lines of the  
> following algorithm (for compatibility with content):
>
>    1. If Content-Type has a charset parameter use that.
>    2. Otherwise, if the response is XML follow the application/xml rules.
>    3. Otherwise, if Content-Type is not specified or empty follow the
>       application/xml rules.
>    4. Otherwise, use UTF-8.

I specified something along the lines of the above:

   http://dev.w3.org/cvsweb/~checkout~/2006/webapi/XMLHttpRequest/Overview.html?content-type=text/html;%20charset=utf-8


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Wednesday, 2 May 2007 13:54:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:57 GMT