php - tcpdf for Arabic display the characters as question marks '?????? ???' -
i wanna create arabic pdf same file witch had in ms execl format. while creating pdf using tcpdf in php arabic charactors displyaed '????' marks.
the characters copied excel file
$htmlcontent2 = '<span color="#0000ff">"مجوهرات السليمان"this arabic "مجوهرات السليمان" example tcpdf.</span>';
$pdf->writehtml($htmlcontent2, true, 0, true, 0);
the output file display below,
??? ???? ?????? ??????this arabic "??????? ????????" example tcpdf.
i solved issue adding following line:
$pdf->setfont('aealarabiya', '', 18);
it turned out need set proper font type remove ugly ????? characters.
the exmaple mentioned in link useful solve issue.
Comments
Post a Comment