Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

£ problem

Status
Not open for further replies.

arst06d

Programmer
Joined
Nov 29, 2002
Messages
324
Hi
Using xsl to transform xn xml document, and need to have the UK sterling £ symbol appear in the resulting html.

Have tried the literal, <xsl:text>, &pound;, &#163;
I either get an error in the browser, or it displays as "?".

Have a similar problem with &#8211;

encoding is UTF-8

Any ideas, please?
 
I assume the XSL document's encoding itself is already set to UTF-8. What is your xsl:output encoding set to?

If it's UTF-8, you should be able to just put the pound character in the XSL file like any other Unicode character.

Also, what are you using to edit your XSL? Make sure it knows how to write UTF-8 files.

Chip H.

If you want to get the best response to a question, please check out FAQ222-2244 first
 

Hi
Found the solution:

<xsl:text disable-output-escaping='yes'>&amp;pound;</xsl:text>

Cheers
 
Status
Not open for further replies.

Similar threads

Replies
4
Views
322
Replies
0
Views
152
Replies
1
Views
252
Replies
3
Views
319

Part and Inventory Search

Sponsor

Back
Top