mpdf中文乱码问题解决

mpdf6.1以后可以用

    $mpdf=new \mPDF('zh-cn','A4','','',32,25,27,25,16,13); $mpdf->WriteHTML("测试中文显示"); $mpdf->Output(); 

6.0

$this->autoLangToFont = true; 
$mpdf=new \mPDF('+aCJK','A4','','',32,25,27,25,16,13); $mpdf->WriteHTML($content); $mpdf->Output();

source: http://nbphp.com/d/16-yii-mpdf

转载于:https://www.cnblogs.com/lxdd/p/7919200.html

你可能感兴趣的:(mpdf中文乱码问题解决)