Arabic PDF Generation

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->SetAuthor("CCC Oneview");

			$pdf->SetTitle("666 - CCC");

			$pdf->SetSubject("Employee Details");

			$pdf->SetKeywords("TCPDF, PDF, example, test, guide");





			$pdf->setAutoPageBreak(true, 0);

            $pdf->SetFont("helvetica", "", <img src='' 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");



I had same problem :(


Try using the latest version of TCPDF

I fixed this problem by using this extension


I tested it on "mPDF " library , after download it try to use Arabic Example in Examples folder .

thanks let me try it…