Search code examples
phphtmlcharacter-encodingspecial-charactersfpdf

Producing symbols from HTML characters in FPDF


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?


Solution

  • You're looking for html_entity_decode().