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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -