I am currently running transformations on xml/xsl files with the markup
<?xml version="1.0" encoding="UTF-8"?> at the top. I have also added
<xsl:output method="html" encoding="UTF-8"/> to the xsl file. I am using
vbscript transformation code:
set objXml = Server.CreateObject("MSXML2.FreeThreadedDOMDocument")
objXml.async = false
objXml.load(Server.MapPath(srcXml))
set objXsl = Server.CreateObject("MSXML2.FreeThreadedDOMDocument")
objXsl.async = false
objXsl.load(Server.MapPath(srcXsl))
'add parameters to the xsl
Set objXSLTemplate = Server.CreateObject("MSXML2.XSLTemplate")
Set objXSLTemplate.stylesheet = objXsl
Set prXSLT = objXSLTemplate.createProcessor
prXSLT.input = objXml
prXSLT.addParameter "sv", Session("sv")
prXSLT.Transform
xslTransform = prXSLT.output
I cannot however get the correct output on the site. The output for, for
example, urdu (سشيب
شسييبي يبيب
ثيب) or japanese
(亜sdfdfせr) comes out as ??????, etc.
The text in xmlSpy looks okay.
Is this something to do with the utf reference, or am I using the wrong
object declaration?
Any help would be appreciated, cheers.
Kate
_________________________________________________________________
Surf the Web without missing calls! Get MSN Broadband.
http://resourcecenter.msn.com/access/plans/freeactivation.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list