L
L
lemonlover2015-06-09 09:48:55
Cyrillic
lemonlover, 2015-06-09 09:48:55

How to configure mpdf to work with cyrillic?

I can't configure mpdf to work with cyrillic characters. Downloaded V6.0 mpdf crashes a bunch of errors

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
krypt3r, 2015-06-09
@krypt3r

At least they showed the code, the text of the errors. And yet, mpdf is not friendly with non-zero mbstring.func_overload

L
lemonlover, 2015-06-11
@lemonlover

ini_set("mbstring.func_overload","0");
$html = '
IP Ivanonv Ivan
';
include("mpdf.php");
$mpdf = new mPDF('utf-8', 'A4', '10', 'Arial', 0, 0, 5, 5, 5, 5);
$mpdf->charset_in = 'utf-8';
$mpdf->list_indent_first_level = 0;
//Write html
$mpdf->WriteHTML($html);
$mpdf->Output();
unpack(): Type n: not enough input, need 2, have 0 in /srv/smb/web/test.mitra.ru/mpdf/html/classes/ttfontsuni.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question