----- Original Message -----
From: "Gabriel K" <gabriel(_dot_)klappenbach(_at_)bredband(_dot_)net>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
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
domXML.loadXML(xmlObj)
...
But still the output of the transform is malicious like before.
Am I using this object the wrong way?
/Gabriel
Try this, untested,
set oStream = createobject("Adodb.Stream")
oStream.type = adTypeText
oStream.open
oStream.writeText o.document
xmlDom.load oStream
oStream.close
You may need to set the character set explicitly on the stream.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdprocharset.asp?frame=true
Joe
--~------------------------------------------------------------------
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>
--~--