OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to specify a Processing Instruction? (better: how tocontrolencoding on saving)



> From: Julian Reschke <julian.reschke@gmx.de>
> To: ComCity <mikeb@comcity.com>; <xml-dev@lists.xml.org>
> Sent: Wednesday, August 29, 2001 3:04 PM
> Subject: RE: How to specify a Processing Instruction? (better: how to
> controlencoding on saving)
>
>
> ..
>
> > "The LoadXML method always takes a Unicode BSTR that is encoded in UCS-2
> or
> > UTF-16 only. If you pass in anything other than a valid Unicode BSTR to
> > LoadXML, it will fail to load."
>
> Well, that can't be.  LoadXML is used in numerous other places in
> the code,
> that don't fail.  And, in the code I'm looking at, LoadXML just reads in
> plain old xml in plain old ASCII non Unicode BSTR and it does not
> fail.  For
> instance, this piece of code runs fine and has no problem.

"Plain old ASCII", passed in a COM string, *is* encoded in UTF-16.