On Fri, 19 Sep 2008 23:26:23 +0200, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
Anne van Kesteren wrote:
Well, correcting charset is fine. The suggestion for not putting it there at all unless the media type is text or it is already present makes some sense though.

I might be convinced of that, I suppose...  but read on.

In any case, my other example (JavaScript) remains.
Is that being transmitted over XMLHttpRequest? And using a media type Internet Explorer does not support for ECMAScript?

Probably, yes.  And same for application/json, I bet.

Well 1) quite a few browsers don't add charset automatically yet like Firefox and 2) these would always be encoded as UTF-8 because you can only get these as DOMString. UTF-8 can easily be detected server side and the author could do application/json;charset=UTF-8 to be sure. (Also, once JSON becomes something like a native data type we can add dedicated support for it.)


--
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Reply via email to