This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Force UTF-8 output in text mode
- From: "Stuart Celarier" <stuart at ferncrk dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 9 May 2002 13:27:45 -0700
- Subject: RE: [xsl] Force UTF-8 output in text mode
- Reply-to: xsl-list at lists dot mulberrytech dot com
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