Posts by Marcos • 21 points
1 post
-
2
votes3
answers7725
viewsA: "HTML contains invalid UTF-8 Character(s)" error when using mpdf
I had the same problem I could solve just like this: $html = utf8_encode($html1); source: https://stackoverflow.com/a/28736069 In my case the pdf is formatted with utf8 $mpdf = new mPDF('utf-8',…