Things to do in Cape Town, the Helderberg, and the Cape Winelands

Tag iso-8859-1

FPDF: How to use a Degree Symbol in a Generated PDF

I’ve been using the FPDF PDF generator library for years now as the de facto method for my PHP projects to produce PDF reports. However, one minor annoyance is that the generated PDF files often falter when it comes to the… Continue Reading →

PHP: How to HTML Entity Decode an Euro Symbol

I came across an annoying bug in my application where for some reason my Euro symbol wasn’t being HTML entity decoded for use in a PDF as opposed to the other available symbols which were. At first I assumed that this might be a bug in the PHP html_entity_decode function, but of course, a quick trip to the official PHP documentation proved me to be completely and utterly wrong.

© 2021 An Exploring South African — Powered by WordPress