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

RE: 𡁀 coming out as ?

Subject: RE: 𡁀 coming out as ?
From: "Chris Bayes" <chris@xxxxxxxxxxx>
Date: Mon, 11 Mar 2002 22:06:20 -0000
response.charset utf 16
Have a look at 
Response.CharSet = "utf-16". 
That will get the html from the asp in sync with the html produced by
the transform. Then in the header add 
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-16">
If the old parser defaults to utf-8 then use utf-8 instead of utf-16.

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Randy Belknap
> Sent: 11 March 2002 20:47
> To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
> Subject: RE:  &#x21040; coming out as ?
> 
> 
> >Use
> >	xml.transformNodeToObject(style, Response);
> 
> I used this command and got a different result listed below, 
> but still not
> what I was looking for.  The two '&#21040's that go through 
> the transformer
> come out as 'OR' and are displayed as 'OR' no matter what 
> encoding I select.
> In addition, I get the a strange character pair before the ' 
> Hello' that I
> seems to be coming out of nowhere.  (As before the '&#21040' 
> that does not
> go through the transformer does correctly display as a 
> chinese character.)
> 
> Thanks,
> 
> Randy
> 
> 
> =====New Result=====
> 
> <html>
> <body>
> <p>&#21040;<br>
> ÿþ  H e l l o :   0R  R a n d y   0R
> </body>
> </html>
> 
> 
> =====New Source=====
> <%@ Language=JScript %>
> <html>
> <body>
> <p>&#21040;<br>
> <%
> 	var style_data = "<?xml version=\"1.0\"?>" +
> 		 "<xsl:stylesheet 
> xmlns:xsl=\"http://www.w3.org/TR/WD-xsl\"
> language=\"JScript\">" +
> 		 "<xsl:template match=\"/\">" +
> 		 " Hello: &#21040; <xsl:value-of select 
> =\"greeting\"/>" +
> 		 "</xsl:template></xsl:stylesheet>";
> 
> 	var style = new ActiveXObject("Microsoft.XMLDOM" );
> 	style.loadXML(style_data);
> 
> 	var xml_data = "<greeting>Randy &#21040; </greeting>";
> 	var xml = new ActiveXObject( "Microsoft.XMLDOM" );
> 	xml.loadXML(xml_data);
> 
> 	xml.transformNodeToObject(style, Response);
> %>
> </body>
> </html>
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 


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