[whatwg] charset attribute of HTMLScriptElement

? 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