Subject: RE: [xsl] Problems generating w-circumflex character forHTMLoutput From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx> Date: Mon, 16 Aug 2004 09:00:09 +0100 |
> >> Things work fine for other characters (a^, o^, etc) just not > >> w^. What is so special about this character ? > > > >The fact that it's not in the iso-8859-1 subset of Unicode. > (iso-8859-1 > >is the "Western European" character repertoire, w^ is needed > only for > >languages like Welsh and Irish Gaelic that are considered > too far West > >to qualify...). > > I set the http charset to UTF-8, and that fixed it. Another technique is to use the ascii output encoding - this forces the serialiser to output anything outside of the ascii range as a character reference. For example, &_wcirc; would be output as the six ascii characters &_#373; (without the underscores) which removes the encoding issue. The only problem with this method is that according to the spec the xml declaration must be output for any output encoding other than UTF-8 or UTF-16, even though ascii is subset. So if the result of the transform is going form part of a larger document you will have deal with a 'spurious' xml declaration. Cheers andrew
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Adding Variables, Deirdre Saoirse Moen | Thread | [xsl] simple conditional looping, Keyur K |
Re: [xsl] Adding Variables, Deirdre Saoirse Moen | Date | Re: [xsl] FO: padding within list p, Ralph Holz |
Month |