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.

  1. that’s not worked for me…

    i try to rendering pdf with chinese character,
    and the pdf just show something like this
    ¸•èμ·,镞凡,盛大 犹太人;

  2. Same : it does not work with russian caracter neither.

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>