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

RE:   doesn't work for some browsers

Subject: RE:   doesn't work for some browsers
From: "SANWAL, ABHISHEK (HP-Houston)" <abhishek.sanwal@xxxxxx>
Date: Mon, 3 Nov 2003 14:51:33 -0600
xsl 160
I had a similar problem it would show up as an accented 'A' when going through some parsers.

If you have not already figured out a solution I realized it was because my transform inputs were XML (UTF8) and XSL (UTF8), which would work with XML Spy but when I would send it through my .NET code for XSL Transform it would come out as HTML (UTF-16).

So I locked it down to ensure that the output was also UTF-8. Poof :) Worked.

You can do this 2 ways:
1. By adding this attribute to ensure UTF-8 <xsl:output encoding="UTF-8">
2. By adding encoding inside the code used to invoke the sheets (.NET in my case). 

System.Text.Encoding.UTF8
Or
System.Text.UTF8Encoding

Hope that helps.

Regards,

Abhishek Sanwal
HP - Houston Campus
abhishek.sanwal@xxxxxx

-----Original Message-----
From: Weaver, Debbie [mailto:debbie.weaver@xxxxxxxxxxxx] 
Sent: Thursday, October 09, 2003 6:15 AM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  ? doesn't work for some browsers

Hello,

I've been happily using &#160; in my XSL stylesheets for a while now but have recently come across a problem where in some browsers the output is either displayed as a ? or a box.

I understand that this is probably due to the browser misinterpreting the character encoding, but my question is - how can I get around this problem?  I have substituted &#160; for &#32; and that does seem to solve the problem, but to be honest...I'm not really sure why or whether it is an OK solution.

I hope someone can help,

Thanks--- Debbie



 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.