Re: [xsl] output encoding problem (can't get UTF-8)

Subject: Re: [xsl] output encoding problem (can't get UTF-8)
From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx>
Date: Sun, 7 Aug 2005 12:25:56 +0100
----- Original Message ----- From: "Gabriel K" <gabriel.klappenbach@xxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Sunday, August 07, 2005 11:50 AM
Subject: SV: [xsl] output encoding problem (can't get UTF-8)

I have tried this in the ASP:

... set oStream = createobject("Adodb.Stream") oStream = o.Document call transform(oStream)

sub transform(xmlObj) dim domXML, domXSL, processor, template


But still the output of the transform is malicious like before.
Am I using this object the wrong way?


Try this, untested,

set oStream = createobject("Adodb.Stream")

oStream.type = adTypeText
oStream.writeText o.document
xmlDom.load oStream

You may need to set the character set explicitly on the stream.


Current Thread