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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

£ and & in XML

Status
Not open for further replies.

emozley

Technical User
Jan 14, 2003
769
GB
Hi,

I am trying to build an XML but have run into two problems.

My first line is

<chart caption='BWB HR Secure - Report' subcaption='Gross Contributions' xAxisName='Department' yAxisName='Contribution' numberPrefix='$'>

But ideally instead of using $ I would like to use £.

Also on my second line I have:

<set label='P & A Law' value='218028.78' />

But it's objecting to the & in my label. Is there a way around either of these?

Thanks very much

Ed
 
[tt]<?xml version="1.0" encoding="utf-8" ?>
<root>
<pound>&#xa3;</pound>
<pound>&#163;</pound>
<ampersand>&amp;</ampersand>
<ampersand>&#x26;</ampersand>
<ampersand>&#38;</ampersand>
</root>[/tt]
 
Using encoding="iso-8859-1" instead of UTF you can use directly £ sign.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top