This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Force UTF-8 output in text mode


It is not true that MSXML's XSLT processor always produces UTF-16. You
will get a UTF-16 encoded result if you use transformNode, because that
produces a BSTR which is UTF-16 by definition.

However, the transformNodeToObject method allows you to get the
transformation result returned as a DOM or streamed to an IStream
object, and thus get UTF-8, ISO-8859-1 or other encodings supported by
the MSXML processor.

There is more information on this in my article on MSXML at
http://www.perfectxml.com/articles/xml/XsltInMsxml.asp.

Cheers,
Stuart

-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of Greg Faron
 
MSXSL (default of XML Spy) will always produce utf-16, I believe.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]