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

[whatwg] charset attribute of HTMLScriptElement

From: Olav Junker Kjr <olav@olav.dk>
Date: Sun, 01 May 2005 11:18:45 +0200
Message-ID: <42749EF5.7050909@olav.dk>
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.

regards
Olav Junker Kj?r

Toshirou Takahashi wrote:
> i hope to add the charset attribute to HTMLScriptElement,
> on 2.12.1. The script element of The Web Applications 1.0
> http://whatwg.org/specs/web-apps/current-work/#the-script
> 
> Because the person who made .js file doesn't know whether 
> the file is used with what charset all over the world. 
> 
> For instance, there is someone using the file written with utf-8 
> on the page of shift_JIS and others. 
Received on Sunday, 1 May 2005 02:18:45 UTC

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