W3C home > Mailing lists > Public > public-webapi@w3.org > June 2008

Re: [XHR] Sending a Document with a mismatched encoding

From: Cameron McCormack <cam@mcc.id.au>
Date: Mon, 9 Jun 2008 13:38:24 +1000
To: public-webapi@w3.org
Message-ID: <20080609033824.GG16479@arc.mcc.id.au>

Cameron McCormack:
> Since passing a String to send() will cause the charset to be fixed up
> to match the actual encoding used (UTF-8, in that case), shouldn’t
> passing a Document to send() do the same?

For that matter, how about defaulting to sending

  Content-Type: text/plain; charset=UTF-8

if a String is passed to send() without a Content-Type having been given
by setRequestHeader()?

Cameron McCormack ≝ http://mcc.id.au/
Received on Monday, 9 June 2008 03:39:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:27 UTC