Use html2pdf for multilingualism.
I tried with this and it worked for me. I developed a site for (English / Japanese). The font arialunicid0 is used for multilingual languages.
require_once('Classes/library/html2pdf.class.php'); //$html2pdf = new HTML2PDF('P', 'A4', 'en'); $html2pdf = new HTML2PDF('P', 'A4', 'en', true, 'UTF-8'); $html2pdf->setDefaultFont('arialunicid0'); $html2pdf->pdf->SetDisplayMode('fullpage'); $html2pdf->writeHTML($content, isset($_GET['vuehtml'])); $filename = $filename .'_'.date('Ymd'); $html2pdf->Output($filename.'.pdf','D');
It downloads a file with Japanese text.
Only the problem I am encountering here is with the file name.
IF I pass in a Japanese character for the file name, it loads the file with an empty name.
source share