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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -