php - Font letters are outputed as symbols -


hey guys ive translated website language , ha ąčęėįšųūž ant etc letters. lithuanian. , ive got problem, when website output report info pdf file, these letters become ?, š, , other symbols. here code, how can make undrestand letters:

$font_dir = dp_base_dir.'/lib/ezpdf/fonts';  require($appui->getlibraryclass('ezpdf/class.ezpdf'));  $pdf = new cezpdf($paper='a4',$orientation='landscape'); $pdf->ezsetcmmargins(1, 2, 1.5, 1.5); $pdf->selectfont("$font_dir/abrilfatface.afm");  $pdf->eztext(safe_utf8_decode(dpgetconfig('company_name')), 12);  $date = new cdate(); $pdf->eztext("\n" . $date->format($df) , 8); $last_week = new cdate($date); $last_week->subtractspan(new date_span(array(7,0,0,0)));  $pdf->selectfont("$font_dir/abrilfatface.afm"); $pdf->eztext("\n" . safe_utf8_decode($appui->_('project completed task report')), 12); $pdf->eztext(safe_utf8_decode($pname), 15); $pdf->eztext(safe_utf8_decode($appui->_('tasks completed since')) . " " . $last_week->format($df) , 10); $pdf->eztext("\n"); $pdf->selectfont("$font_dir/abrilfatface.afm"); $title = null; $options = array(     'showlines' => 2,     'showheadings' => 1,     'fontsize' => 9,     'rowgap' => 4,     'colgap' => 5,     'xpos' => 50,     'xorientation' => 'right',     'width'=>'750',     'shaded'=> 0,     'cols'=>array(         0=>array('justification'=>'left','width'=>250),         1=>array('justification'=>'left','width'=>95),         2=>array('justification'=>'center','width'=>75),         3=>array('justification'=>'center','width'=>75),         4=>array('justification'=>'center','width'=>75)) ); 

ive tried changing fonts abril fatface. ddnt helped, can do?


Comments