Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1039

tcpdf for Arabic display the characters as question marks '?????? ???'

$
0
0

I wanna create an Arabic pdf as same as the file witch I had in ms Execl format. While creating the pdf using tcpdf in php the Arabic charactors are displyaed as '????' marks.

The characters are copied from my excel file

$htmlcontent2 = '<span color="#0000ff">"مجوهراتالسليمان"This is Arabic "مجوهراتالسليمان" Example With TCPDF.</span>';

$pdf->WriteHTML($htmlcontent2, true, 0, true, 0);

the output file display as below,

??? ???? ?????? ??????This is Arabic "??????? ????????"Example With TCPDF.


Viewing all articles
Browse latest Browse all 1039

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>