I have a using html2pdf library from this link http://html2pdf.fr/en/ and I am trying to get a simple html code into html, the problem is that my text is Hebrew langue and for some reason instead of the text I am getting something like this "???".
The same Html code in the browser that set on UTF-8 is working fine !
This is my php code:
$html2pdf = new HTML2PDF('P', 'A4', 'en', true, 'UTF-8');
$html2pdf->setDefaultFont('arial'); //add this line
$html2pdf->pdf->SetDisplayMode('fullpage');
$html2pdf->writeHTML($output, false);
$html2pdf->Output('names.pdf');
I tried to use this
$html2pdf->setDefaultFont('arialunicid0');
And it did help most of the character showed up correctly but not of them, if anyone have any ideas how can I fix this I will be very grateful I really need this !