For report generation in PHP I am using HTML2PDF.
It works fine with English language but not giving proper output for Japanese language.
How can I set utg8 character in hHTML2PDF library.
Is there a way to achieve this in HTML2PDF library. I am gettign output like "???????????????" instead of Japanese text
In /var/www/html/html2pdf/locale folder following files I found en.csv, fr.cvs, cs.csv, da.csv
Can we get such file for Japanese too.
Below is my code
<?php
$content = ob_get_clean();
// convert to PDF
require_once('Classes/library/html2pdf.class.php');
try {
$html2pdf = new HTML2PDF('P', 'A4', 'en');
$html2pdf->pdf->SetDisplayMode('fullpage');
// $html2pdf->pdf->SetProtection(array('print'), 'spipu');
$html2pdf->writeHTML($content, isset($_GET['vuehtml']));
$filename = $filename .'_'.date('Ymd');
$html2pdf->Output($filename.'.pdf','D');//,'D'
}
catch(HTML2PDF_exception $e) {
echo $e;
exit;
}