Re: "Re: Two tiny questions"

On Fri, 2004-03-19 at 11:48, Kasimier Buchcik wrote:
> >>2. It is still unclear to me if an error (and which) should be raised if
> >>   parsing a DOMString with the LSParser, and the encoding declaration
> >>   states something different than "UTF-16", or not. If not: should
> >>   xmlEncoding be set to this declared encoding?
> > 
> > 
> > I don't think it should be an error, at most a warning. HTTP is allowed
> > to overwrite the encoding of the XML declaration already. I would treat
> > it the same for this case: the information in the XML declaration is
> > overwritten by the encoding of DOMString, and is therefore simply
> > ignored.
> > 
> > Philippe
> 
> Great, all that I wanted to hear; so I'll just set 
> Document.xmlDeclaration to "UTF-16".

Document.inputEncoding should be "UTF-16". Document.xmlEncoding should
be whatever was in the XML declaration if any.

Philippe

Received on Friday, 19 March 2004 15:55:48 UTC