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

RE: Re:   is being displayed as Á

Subject: RE: Re:   is being displayed as Á
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 11 Dec 2001 13:30:45 -0000
160 displayed as
> KM> I am using &#160; in my xsl in order to display spaces.
> For some reason Á
> KM> is being displayed on the page instead.  Any ideas on why
> this is occurring,
> KM> or ideas for a substitue for &#160; in order to display a space?
>
> I had the same problem recently. It is as other people have said
> because of character set problems. What you want to do to avoid this
> is to just output an entity reference in the HTML file rather than the
> actual character.

The problem occurs because your XSLT transformation has produced a file in
UTF-8 encoding and you are looking at it with a text editor that doesn't
understand UTF-8. Either get an editor that does understand UTF-8, or
generate the output in an encoding that your editor understands (e.g.
ISO-8859-1), or just throw the output at the HTML browser without trying to
look at it first.
>
> You can do this by changing:
>
>    &#160;
> to:
>    &amp;#160;
>
Don't do that, unless you want it to appear as "&#160;" rather than " " when
viewed in the browser.

Mike Kay


 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.