Page 1 of 1

How Do I Display the Pound Sterling (£) symbol in a PDF/PHP?

Posted: Mon Sep 29, 2008 12:42 pm
by kerryb
Hello all,

I have a small problem that I'm not able to solve.

I am trying to create a PDF using the FPDF class from http://www.fpdf.org and in this pdf I need to display the pound sterling (£) symbol. Unfortunately, after I have created the pdf all the '£' symbols are preceded by an 'Â' symbol and I'm unable to find information anywhere how to escape the £ symbol so that it appears correctly in a PDF.

Can anyone give me any suggestions ?

Many Thanks

Kerry

Re: How Do I Display the Pound Sterling (£) symbol in a PDF/PHP?

Posted: Mon Sep 29, 2008 5:16 pm
by panic!
try:

&pounds;

Re: How Do I Display the Pound Sterling (£) symbol in a PDF/PHP?

Posted: Mon Sep 29, 2008 5:48 pm
by kerryb
£ is how I leave it encoded in the MySQL database (incidentally when viewing the data through PHPMyAdmin the same  occurs although I've noticed this is doesn't happen all the time, sometimes the £ appears just as it should)

£ appears as £ in the PDF