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

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