Hi Don,
This is all very confusing, so I'm going to ask someone else what their
opinion is. The second URL points to part of the recommendation that's
non-normative, but I may be mis-reading the first part.
Dave
"Don McClimans"
<[EMAIL PROTECTED] To: "David N
Bertoni/Cambridge/IBM" <[EMAIL PROTECTED]>
ronics.com> cc:
Subject: RE: std::istream
as XSLTInputSource
01/31/2003 12:06 PM
>>If so, do I have to start the stream with a BOM, for the parser to
>>recognise it as UTF-16?
>
>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,
Hmm, as I read that second URL, the answer is no. It says that using a byte
order mark is fine, but without a byte order mark, the parser should be
able
to tell what encoding is being used by looking at the first four bytes of
the file, which should be "<?" in UTF-16.
Don
- std::istream as XSLTInputSource Colin Paul Adams
- Re: std::istream as XSLTInputSource David N Bertoni/Cambridge/IBM
- Re: std::istream as XSLTInputSource Colin Paul Adams
- Re: std::istream as XSLTInputSo... David N Bertoni/Cambridge/IBM
- Re: RE: std::istream as XSLTInputSource David N Bertoni/Cambridge/IBM
- Re: RE: std::istream as XSLTInputSource berin
