W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2009

[whatwg] Please always use utf-8 for Web Workers

From: Anne van Kesteren <annevk@opera.com>
Date: Fri, 25 Sep 2009 19:21:55 +0200
Message-ID: <op.u0to6tfx64w2qv@annevk-t60>
On Fri, 25 Sep 2009 19:16:47 +0200, Drew Wilson <atwilson at google.com>  
> Certainly. If I explicitly override the charset, then that seems like
> reasonable behavior.

It does not need to be overridden per se. If the document character  
encoding is different from UTF-8 then a script loaded through <script>  
will be decoded differently from a script loaded through importScripts()  
as well.

> Having the default decoding vary between importScripts() and <script>  
> seems bad, especially since you can't override charsets with  
> importScripts().

This is already the case. The suggestion was not about changing the  

Anne van Kesteren
Received on Friday, 25 September 2009 10:21:55 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:52 UTC