私はしばらくこれに苦労してきました。
そのため、UTF-8 でエンコードされた index.php という単純なファイルがあります。このファイルの内容は次のとおりです。
require_once("dompdf/dompdf_config.inc.php");
$html =
'<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><style> body { font-family: verdana; } </style></head><body>'.
'<p>Put your html here, or generate it with your favourite '.
'templating system.</p><p>Č Š Ž č š ž €</p>'.
'</body></html>';
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream("sample.pdf");
基本的に、PDFでČŠŽの文字を正しく表示しようとしています。Š と Ž は問題なく動作しますが、Č が正しく表示されないようです。私のPDFファイルで。何か案は?