Hi Colin,

You have to do what the XML recommendation says:

   http://www.w3.org/TR/REC-xml#charencoding
   http://www.w3.org/TR/REC-xml#sec-guessing

So the answer is yes.

Dave



                                                                                
                                                      
                      Colin Paul Adams                                          
                                                      
                      <[EMAIL PROTECTED]         To:      
[email protected]                                                  
                      mon.co.uk>               cc:      (bcc: David N 
Bertoni/Cambridge/IBM)                                          
                                               Subject: Re: std::istream as 
XSLTInputSource                                           
                      01/31/2003 11:18                                          
                                                      
                      AM                                                        
                                                      
                                                                                
                                                      



>>>>> "David" == David N Bertoni/Cambridge/IBM <[EMAIL PROTECTED]>
writes:

    David> There is no assumption made about the encoding.  It can be
    David> any stream of bytes that represents a well-formed XML
    David> document.  The parser will do what is required to determine
    David> the encoding, as it would with a stream from a file.

So does that mean I can pass a stream of UTF-16 bytes to it?
If so, do I have to start the stream with a BOM, for the parser to
recognise it as UTF-16?
--
Colin Paul Adams
Preston Lancashire


Reply via email to