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
posted @ 2017-11-29 11:04  栋的博客  阅读(4138)  评论(0编辑  收藏  举报
深入理解php php扩展开发 docker mongodb