Tag Archives: dompdf

Using dompdf with UTF-8 encoding

I have used dompdf for the first time to generate PDF files from html content, and it seems to be working pretty well. One thing I noticed, when using UTF-8 encoding, you should add following in the head section of your html content :

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

This way, the characters will be displayed correctly in the rendered pdf.