[whatwg] charset attribute of HTMLScriptElement

Anne van Kesteren fora at annevankesteren.nl
Sun May 1 10:39:47 PDT 2005

� 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

More information about the whatwg mailing list