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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -