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

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

From: Drew Wilson <atwilson@google.com>
Date: Fri, 25 Sep 2009 10:16:47 -0700
Message-ID: <f965ae410909251016q1796d06evc1ce2597e041d693@mail.gmail.com>
Certainly. If I explicitly override the charset, then that seems like
reasonable behavior.
Having the default decoding vary between importScripts() and <script> seems
bad, especially since you can't override charsets with importScripts().

-atw

On Fri, Sep 25, 2009 at 10:08 AM, Anne van Kesteren <annevk at opera.com>wrote:

> On Fri, 25 Sep 2009 18:39:48 +0200, Drew Wilson <atwilson at google.com>
> wrote:
>
>> Are you saying that if I load a script via a <script> tag in a web page,
>> then load it via importScripts() in a worker, that the result of loading
>> that script in those two cases should/could be different because of
>> different decoding mechanisms?
>> If that's what's being proposed, that seems bad.
>>
>
> That could happen already if the script loaded via <script> did not have an
> encoding set and got it from <script charset>.
>
>
> --
> Anne van Kesteren
> http://annevankesteren.nl/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090925/acf44609/attachment.htm>
Received on Friday, 25 September 2009 10:16:47 UTC

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