W3C home > Mailing lists > Public > public-webapi@w3.org > December 2007

Re: [XHR] i18n comment 7: Encoding of DOMString

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 12 Dec 2007 18:11:54 +0100
To: "Boris Zbarsky" <bzbarsky@mit.edu>
Cc: public-webapi@w3.org, public-i18n-core@w3.org
Message-ID: <op.t28fd4ze64w2qv@annevk-t60.oslo.opera.com>

On Thu, 06 Dec 2007 18:21:05 +0100, Boris Zbarsky <bzbarsky@MIT.EDU> wrote:
> 1)  Gecko always sends a DOMString 'data' as UTF-8.  The Content-Type  
> header being sent is changed as needed if it does not already contain  
> charset=UTF-8 (up to case, etc).


> 2)  When 'data' is a Document, it's encoded using the inputEncoding.   
> This may not match the xmlEncoding if the document was served over HTTP  
> and there was a Content-Type header that specified a different encoding  
> from the XML declaration.  The XML declaration, if any, in the  
> serialization specifies the actual encoding used when serializing.  The  
> XMLHttpRequest Content-Type header is also adjusted to specify the same  
> encoding.


Anne van Kesteren
Received on Wednesday, 12 December 2007 17:10:51 UTC

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