Put mPDF. I generate the file. It has Russian characters. As a result, in the file instead of Russian characters question marks.

I create mPDF like this: $mpdf = new mPDF('c') .

Tell me how to make that Russian characters displayed normally?

    1 answer 1

    It is necessary to install in htaccess

     php_value mbstring.func_overload = 0 

    Knowing that you are working with Bitrix - you need to make a separate htaccess for the folder or even generate PDF generation on another server.

    • To put the problem on a separate server for pdf is generated on the fly when creating a letter, but I need the text of the letter. in which htaccess to write it? - Tsyklop
    • Create a folder and put htaccess in it and next to mPDF and a script that will accept the string and return the link to the PDF and the CURL function, access this script - Mihanik71
    • and how to do it on Windows? I'm for htaccess. I have a web environment from the bitrix themselves. - Tsyklop
    • Well, do you have htaccess in the root? - Mihanik71
    • Yes I see. there is. But the question is. I have this file in the root directory of the site itself (www folder). It `s that? - Tsyklop