如何在MPDF 6.0中更改字符集?当我回显$ html变量时一切都很好,但当我把它变成pdf然后我有问号而不是一些特殊字符...
$html = '<html><head><meta http-equiv=Content-Type content="text/html; charset=UTF-8">' . $style . '</head><body>
' . $page4 . ' źźźżżżżżż
</body>
</html>
';
include("mpdf60/mpdf.php");
$mpdf=new mPDF('c',array(297,210));
$mpdf->WriteHTML($html);
$mpdf->allow_charset_conversion = true;
$mpdf->charset_in = 'iso-8859-2';
$mpdf->Output();
exit;