Hello,
I have problem with creating PDF file with international czech
characters.
Here are symbols I want to get
ěščřžýáíéúůó
dompdf create this
?š??žýáíéú?ó
And code is here
[code]
ob_start();
require_once("dompdf/dompdf_config.inc.php");
$content = '
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="charset=utf-8" />
</head>
ěščřžýáíéúůó
</body></html>';
$pdf = new DOMPDF();
$pdf->load_html($content);
$pdf->render();
$pdf->stream("file.pdf");
ob_end_flush();
[/code]
I have tried thing like using iconv "UTF-8" to "ISO-8859-2",
utf_decode... no success. I don't thing there will be problem with
fonts, because that deja-vu font included in dompdf print those
characters just fine.
I'm really stuck with this, any help would be appreciated.
Nikita