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

Re: XHR: responseText encoding detection

From: Anne van Kesteren <annevk@opera.com>
Date: Sat, 24 Feb 2007 10:13:40 +0100
To: "Bjoern Hoehrmann" <derhoermi@gmx.net>, public-webapi@w3.org
Message-ID: <op.tn8w82wl64w2qv@id-c0020.driveway.uu.nl>

On Thu, 22 Feb 2007 10:26:01 +0100, Bjoern Hoehrmann <derhoermi@gmx.net>  
wrote:
>   For responseText the current draft says:
>
>   If the response includes a Content-Type understood by the user agent
>   the characters are encoded following the relevant media type
>   specification, with the exception that the rule in the final paragraph
>   of section 3.7.1 of [RFC2616], and the rules in section 4.1.2 of
>   [RFC2046] must be treated as if they specified the default character
>   encoding as being UTF-8. Invalid bytes must be converted to U+FFFD
>   REPLACEMENT CHARACTER.
>
> There are many problems with this text.

I've fixed the relevant bits. This probably needs more testing though.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Saturday, 24 February 2007 09:13:52 GMT

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