[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.