W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2015

Re: [XHR] UTF-16 - do content sniffing or not?

From: Hallvord Reiar Michaelsen Steen <hsteen@mozilla.com>
Date: Mon, 23 Mar 2015 14:32:27 +0100
Message-ID: <CAE3JC2xd-2SaB97DTG=6wvBUjwN72tJ6sj6EyprCDUL-MZ-cEw@mail.gmail.com>
To: Simon Pieters <simonp@opera.com>
Cc: WebApps WG <public-webapps@w3.org>
On Mon, Mar 23, 2015 at 1:45 PM, Simon Pieters <simonp@opera.com> wrote:

> On Sun, 22 Mar 2015 23:13:20 +0100, Hallvord Reiar Michaelsen Steen <
> hsteen@mozilla.com> wrote:
>
>
>> Given a server which sends UTF-16 data with a UTF-16 BOM but does *not*
>> send "charset=UTF-16" in the Content-Type header - should the browser
>> detect the encoding, or just assume UTF-8 and return mojibake-ish data?
>>
>

> What is your test doing? From what I understand of the spec, the result is
> different between e.g. responseText (honors utf-16 BOM) and JSON response
> (always decodes as utf-8).
>
>
It tests responseText.
Received on Monday, 23 March 2015 13:32:55 UTC

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