DOMPDF problem with Cyrillic characters


I am using the DOMPDF library to create an invoice in PDF. This document can be in French, Russian or English, but I am having trouble printing Russian characters.

First, I tried to use UTF-8 encoding and placed the meta tag in the head of the HTML page to be converted:

<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />

But that didn’t work.

Then I inserted this meta tag inside the BODY tag, and it helped solve the problem with French characters.

But Russian characters still don’t work. I have also tried to convert Russian characters into HTML entities, but that too does not work.

I use R&OS CPDF class, not PDFLib as a backend.

Can anyone help?


Problem is with fonts default dompdf uses (that is it doesn’t have all unicode characters, whick are by now over 5000). Usually arialuni.ttf is what you need. You can download localized russian version at {broken link}

Updated link:

Answered By – Artjom Kurapov

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published