when I export to PDF i get "question mark symbols’ in place of arabic words while english words are displayed correctly…changed the charset to utf-8 but still no luck…can anyone help me?
am using tcpdf yii extension…here is my controller action for the same…
public function actionToPdf(){
$model=new TblBasicEmployeeDetails('search');
$pdf = Yii::createComponent('application.extensions.tcpdf.ETcPdf', 'P', 'cm', 'A4', true, 'UTF-8');
$lg = Array();
$lg['a_meta_charset'] = "UTF-8";
$lg['a_meta_dir'] = "rtl";
$lg['a_meta_language'] = "ar";
$lg['w_page'] = "page";
//set some language-dependent strings
$pdf->setLanguageArray($lg);
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor("CCC Oneview");
$pdf->SetTitle("666 - CCC");
$pdf->SetSubject("Employee Details");
$pdf->SetKeywords("TCPDF, PDF, example, test, guide");
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->setAutoPageBreak(true, 0);
$pdf->SetFont("helvetica", "", <img src='http://www.yiiframework.com/forum/public/style_emoticons/default/cool.gif' class='bbc_emoticon' alt='8)' />;
$pdf->Cell(0,1,"Employee Details",1,1,'C');
$html = $this->renderPartial('_gridData', array('model' => $model), true);
$pdf->writeHTML($html, true, false, false, false, '');
$pdf->Output("emp_details.pdf", "I");
header("Content-type:application/pdf, charset=UTF-8");
header("Content-Disposition:attachment;filename='emp_details.pdf'");
}