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

RE: non-breaking spaces in html tables

Subject: RE: non-breaking spaces in html tables
From: "Josh Canfield" <Josh.Canfield@xxxxxxxxxxxx>
Date: Tue, 20 Jan 2004 16:03:02 -0800
non breaking spaces
Check your output encoding. It sounds like you are outputting UTF-8, but your browser is interpreting it as a single byte encoding (ISO-8859-1 perhaps?)

The character &#A0; becomes the two bytes 0xC2A0 when encoded in UTF-8 and is left as a single byte, 0xA0, in ISO-8859-1.

When your browser reads the UTF-8 data as Windows Western character set (ISO-8859-1) it sees two characters, the  that is the 0xC2 character, and the no-break space, 0xA0.

Hope this helps,
Josh

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
walter.crockett@xxxxxxxxxxxxxxxxxxxxx
Sent: Tuesday, January 20, 2004 3:07 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  non-breaking spaces in html tables


I am using XSL to create a table in HTML. I need the cells to have borders
even when nothing is in them. 
In the past I did this by adding non-breaking spaces with "&#160;", for
example:

<td><a href="{$ConnectedTableName}.htm"><xsl:value-of
select="$ConnectedTableName"/></a>&#160;</td>

This was working fine in August, but now instead of a non-breaking space I
get an A with a little curly thing on top of it.

So I switched to:

<td><a href="{$ConnectedTableName}.htm"><xsl:value-of
select="$ConnectedTableName"/></a><xsl:text>&#xa0;</xsl:text></td>

This works fine when I test it in XML Spy, but still produces the strange
character when I run it in our product using MSXML4.

Has something changed in the recent versions of MSXML4 that is screwing me
up, or am I using outmoded code?

Yours,
Walter Crockett

 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.