W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2005

[whatwg] charset attribute of HTMLScriptElement

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Sun, 01 May 2005 19:39:47 +0200
Message-ID: <42751463.4020207@annevankesteren.nl>
? wrote:
> Wouldn't it be safer to declare the encoding in the js file itself?
> It could be in a magic comment at the start of the document:
> //@charset("utf8")
> Not very elegant, but less error prone than to specify the encoding 
> everywhere the file is included.

You really want to use the BOM of UTF-8 instead of this I guess.


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>
Received on Sunday, 1 May 2005 10:39:47 UTC

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