Home / Blog / Post
Converting The Pound Symbol
Added on 31st May 2019 in Snippet

Had a task where I needed to add the GBP symbol £ to a pdf which is built up using FPDF. Since FPDF does not support UTF8 encoding, it would not render the GBP (£) character;

The fix for this is to convert the character first.

iconv("UTF-8", "ISO-8859-1", "£");

Hi there, I am christopher shaw, a software developer form South Yorkshire, England.

I love tinkering with all things tech, and opened this website as a web presence for myself and a place to keep my notes and snippets. Hopefully you will find something here to help

Christopher Shaw