How to use mPDF for Chinese Language - Chinese language is not supporting

27 views Asked by At

I am using mPDF to save form input data to PDF. For English, it is working fine. But when i translate the content in chinese language and after that when i hit the mpdf function then it prints unwanted symbols instead of chinese strings.

Need help

$config = [
    'mode' => '+aCJK', 
    // "allowCJKoverflow" => true, 
    "autoScriptToLang" => true,
    // "allow_charset_conversion" => false,
    "autoLangToFont" => true,
];
$mpdf=new \Mpdf\Mpdf($config);

i tried this too but it's not working. Also tried this How to use mPDF for Chinese Language

and this solutions

https://github.com/mpdf/mpdf/discussions/1488

0

There are 0 answers