Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Non-breaking spaces with multiple charsets [Thread Next] Re: Non-breaking spaces with multiple charsetsTo: NULL Date: 9/8/2006 1:00:00 PM "Simon Caldwell" <simonjcaldwell@g...> wrote in message news:1157706909.106250.147740@e...... > When we need a non-breaking space from an xsl, we've been happily using >   as usually recommended. > However, we now have a need to support different charsets, for instance > Big5, and this does not render   as expected. > > For instance, the code snippet given below will output a non-breaking > space for charset iso-8859-1. But for charset Big5 we get "?/TD>" > instead. > > So the question is - how can we code this so that it will work > regardless of charset? > > TIA > > Simon > > > <?xml version="1.0" encoding="UTF-8"?> > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > > <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> > <xsl:template match="/"> > <TABLE WIDTH="100%" BORDER="0" CELLSPACING="1" CELLPADDING="3" > ALIGN="center" BGCOLOR="#999999"> > <TR> > <TD> </TD> > </TR> > </TABLE> > </xsl:template> > </xsl:stylesheet> The above xsl outputs UTF-8. If you change the xsl:ouput encoding to BIG5 the non-breaking space comes out as a ? because there is no equivalent in BIG5. Try  instead for BIG5. It's a kludge but it should work. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
