Producing symbols from HTML characters in FPDF

seveninstl picture seveninstl · Jan 3, 2012 · Viewed 9.9k times · Source

I have a government client that requires the legal 'section symbol' (§) in their documents. When creating the documents in a web page, this symbol is created with § or §.

I can not figure out how to get either of these to work in a pdf document created with FPDF. I have tried the iconv and utf8_decode methods, but neither have worked. Any ideas?

Answer

SLaks picture SLaks · Jan 3, 2012

You're looking for html_entity_decode().