W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2010

[whatwg] Character encoding of document.open()ed documents

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 31 Mar 2010 15:11:28 -0400
Message-ID: <4BB39E60.9020009@mit.edu>
On 3/31/10 10:37 AM, Henri Sivonen wrote:
> Gecko sets the document's character encoding to UTF-8 and uses UTF-8 to decode the external resource.

One more clarifying question.... Does Gecko use UTF-8, or the encoding 
of whatever document it was open() got called on?

> WebKit uses the encoding of the opener. IE8 (both with compat view button pressed and not pressed) sets the document's character encoding to "unicode" and uses UTF-8 to decode the external resource. Opera uses Windows-1252 to decode the external resource.

Similar question for IE.

>>> None of IE, WebKit or Opera let the meta charset in a document.open()ed document have any effect
>>
>> As in, it doesn't affect how external resources with no encoding labels are handled?
>
> Right.

OK.

-Boris
Received on Wednesday, 31 March 2010 12:11:28 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:22 UTC