[Home] [By Thread] [By Date] [Recent Entries]

  • From: Julian Reschke <julian.reschke@g...>
  • To: ComCity <mikeb@c...>, xml-dev@l...
  • Date: Thu, 30 Aug 2001 00:26:49 +0200

> From: Julian Reschke <julian.reschke@g...>
> To: ComCity <mikeb@c...>; <xml-dev@l...>
> 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.



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member