Reputation: 11
I am doing my Project in CodeIgniter framework
I am converting php file to PDF. I am showing my content in fancy box in that if i click PDF it generating PDF, in this no issues.
My issue is in fancy box i can see English, Numeric and Arabic letters as it is.
But, when it comes to PDF Arabic letters alone changed to Question mark like this ?????.
To get Arabic letters in PDF what i have to do. I think UTF-8 some but I am not clear.
Can any ONE Help.
Upvotes: 0
Views: 517
Reputation: 11
This code is working
In php page put below code in head. The issue was in my css font so only i got Arabic letters as ????? in pdf
<meta http-equiv="Content-Type" content="charset=utf-8"/>
In css
th
{
font-family: "DejaVu Sans Mono", monospace;
/*font-family: "Helvetica", sans-serif;*/ This is wrong
border: solid 1px black;
font-size: 12px;
}
Upvotes: 1