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

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

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 27 Jul 2010 19:21:47 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1007271914530.7470@ps20323.dreamhostps.com>
On Wed, 31 Mar 2010, Henri Sivonen wrote:
> 
> Spec change request: Please change the spec to say that document.open() 
> sets the document's character encoding to UTF-8

(There was also a lot of research on the topic, that I haven't quoted 
here, because frankly it just showed a complete lack of consistency in 
what browsers do.)

I've made the change.

Hopefully this is equally as compatible (which seems likely given the 
research), but if it turns out that we have to make this more complicated, 
it would be really helpful to have examples of pages that depend on 
whatever weird behaviour we need to have.

Should the default character encoding of a brand new document (e.g. from 
createDocument()) also be UTF-8 rather than UTF-16?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 27 July 2010 12:21:47 UTC

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