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

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