spipu / html2pdf

OFFICIAL PROJECT | HTML to PDF converter written in PHP
http://html2pdf.fr/en/default
Open Software License 3.0
1.68k stars 751 forks source link

caractères utf8 non valide:' Date pi \ xE8ce sur un pdf HTML2PDF #506

Open AlainDORENLOT opened 5 years ago

AlainDORENLOT commented 5 years ago

Hello, I created several pdf with the help of HTML2PDF and I never had any problems, on the last one, it only works from time to time and it shows me this message: Invalid utf8 characters: 'Date pi \ xE8ce What can I do, I do not see where it can come from Can you help me

LittleBigFox commented 5 years ago

Hi!

Could you provide your Html2PDF constructor? What charset do you use? UTF-8 or iso-8859-15?

Regards, LBF