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

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