M
M
mirexdoors2018-04-10 19:33:26
PHP
mirexdoors, 2018-04-10 19:33:26

How to output Cyrillic mPDF?

Hello! I've scoured the internet but haven't found a working solution. The bottom line is that the following script is on the server:

$html =  $_POST['content'];
    $filename = $_POST['filename'] . '.pdf';
    $mpdf = new mPDF();
    $mpdf->charset_in = 'utf-8';
    $mpdf->writeHTML($html);
    $mpdf->Output($filename, 'D');

refuses to display Cyrillic. On the local openServere works fine.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Prince of Denmark, 2018-04-13
@pezdatskiy

And what encoding comes to Post? And head did? Try. I have tons of Cyrillic output on mpdf, even without charset_in. Probably not utf comes to the post.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question