xsl-list
[Top] [All Lists]

RE: IXSLProcessor - input in UTF-8?

2005-09-14 08:55:06
Well I can adjust the output encoding to whatever I want, for instance UTF-8
or ISO-8859-1. And yes I do this in the stylesheets output element.
However, the characters åäö in the output only look fine IF and only if the
input XML document is encoded in ISO-8859-1. If it is, everything is fine
regardless of output encoding, it looks fine whichever I choose.

That is why it seems to me that IXSLProcessor only reads it input in that
encoding, and ignores the declaration in the XML document.
But you are convinced that IXSLProcessor follows the input encoding
specified in the XML?

/Gabriel

-----Ursprungligt meddelande-----
Från: Nick Fitzsimons [mailto:nick(_at_)nickfitz(_dot_)co(_dot_)uk]
Skickat: den 14 september 2005 17:22
Till: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Ämne: RE: [xsl] IXSLProcessor - input in UTF-8?

Well if I output the contents of the COM object, I get an UTF-8 encoded
XML
document that I can view in the browser, and åäö looks fine there.
Same thing if I output DOM XML. But if I transform it using
IXSLProcessor,
that's when åäö looks weird.

/Gabriel

I would conclude from the fact that the DOM output from the COM component
is fine that it's something in the transformation. Have you specified

encoding="UTF-8"

in the <xsl:output> element? IIRC, MSXML has a tendency to default to
UTF-16 (or something else...). Ensure that you specify the encoding in the
XSLT and it may solve your problems.

Then again, from lots of past experience with MSXML, it may not :-)

HTH,

Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>