Re: [XMLHttpRequest] responseText decoding

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 UTC