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

[whatwg] charset attribute of HTMLScriptElement

From: Toshirou Takahashi <tato@fureai.or.jp>
Date: Mon, 02 May 2005 10:54:01 +0900
Message-ID: <20050502105100.96C5.TATO@fureai.or.jp>

Ian Hickson wrote: 
> On Sun, 1 May 2005, Toshirou Takahashi wrote:
> > 
> > i hope to add the charset attribute to HTMLScriptElement, on 2.12.1.
> > 
> > Because the person who made .js file doesn't know whether the file is 
> > used with what charset all over the world.
> 
> You can already do this -- just include the correct encoding information 
> in the Content-Type header for the JS file, as in:
> 
>    Content-Type: text/javascript;charset=utf-8


It is a good method. I also agree and I can do.  

However, how do you do when the user cannot use cgi , .htaccess etc ?

Many users can not necessarily use cgi etc ,
and cannot make .htaccess at for instance, many rental servers...


Regards
-- 
Toshirou Takahashi 
<http://jsgt.org/mt/01/>
Received on Sunday, 1 May 2005 18:54:01 UTC

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