xsl-list
[Top] [All Lists]

RE: IXSLProcessor - input in UTF-8?

2005-09-14 06:59:52
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

-----Ursprungligt meddelande-----
Från: David Carlisle [mailto:davidc(_at_)nag(_dot_)co(_dot_)uk]
Skickat: den 14 september 2005 15:52
Till: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Ämne: Re: [xsl] IXSLProcessor - input in UTF-8?


COM object --> DOM XML  -->  IXSLProcessor input

The DOM object stores text as unicode characters so there is no
"encoding" involved in the DOM.

The encoding is a mapping between bytes in a file (or other stream) and
unicode characters so only has any meaning at the point that those bytes
are passed to an XML parser.

So your problem isn't the input to IXSLProcessor, it's the construction
of the DOM, or earlier, wherever the file encoding is being used (or not
used)

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.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>
--~--