xsl-list
[Top] [All Lists]

msxml encoding for multi-language sites

2002-11-01 09:02:36


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 (&#1587;&#1588;&#1610;&#1576; &#1588;&#1587;&#1610;&#1610;&#1576;&#1610; &#1610;&#1576;&#1610;&#1576; &#1579;&#1610;&#1576;) or japanese (&#20124;sdf&#65348;&#65350;&#12379;&#65362;) 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



<Prev in Thread] Current Thread [Next in Thread>
  • msxml encoding for multi-language sites, katharine wykes <=