..

PDFKit not displaying £ (pound) signs properly

I’m generating PDFs with PDFkit/wkhtmltopdf on a current project. While the output is fine in the browser, £ (pound) signs in the generated PDF were showing up incorrectly as:

£

The fix was relatively easy as PDFs have their own view layout, so all I had to do was add an extra meta tag to the head:

<meta content="text/html; charset=utf-8" http-equiv="content-type"></meta>