1

Hi,
I need help with the utf8 in your class.
I've a script that make a table from a mysql db.
In that table there's a field with only utf8 charter.
When I print this table normaly in html it's all ok (the charter is right), but if I pass the html in the ob_start cache to your class, the pdf that are generated have ? where there was some charter.

This is the part of the script that make the pdf:
[code]require_once($inc_dir.'/pdf/html2pdf.class.php');
$html2pdf = new HTML2PDF('P', 'A4', 'it', true, 'UTF-8',array(10,5,10,5));
$html2pdf->pdf->SetDisplayMode('fullpage');
$html2pdf->pdf->SetProtection(array('print'));
$html2pdf->writeHTML($content, isset($_GET['vuehtml']));
$html2pdf->Output('vocabolario.pdf',"F");[/code]

what's wrong? how I have to modify to have it right?

Thanks

2

in first, do you use the v4.00 of html2pdf ?

in second, you must use a specific font for UTF8, with all the characters. see example "utf8" wink
Ancien pseudo : lolo

3

hi
thanks for the replay ^^
I've forgotten to specify the font... now it work ^^

Thanks again
Mix
^.^