php - FPDF Doesn't output accents or simbols -
i got huge text in spanish, when add pdf write(5,$text)
outputs doesn't show accents(é,á,ó) or simbols $ or &. i've tried using output in utf-8 $pdf->output("i","contrato",true);
still doesn't show text should. other solution?
you have decode utf-8, so:
write(5, utf8_decode($text));
an alternative using iconv()
, so:
write(5, iconv('utf-8', 'iso-8859-1', $text));
Comments
Post a Comment