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

msxml encoding for multi-language sites

Subject: msxml encoding for multi-language sites
From: "katharine wykes" <katharinewykes@xxxxxxxxxxx>
Date: Fri, 01 Nov 2002 16:02:36 +0000
msxml encoding


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



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-2007 All Rights Reserved.