1
I have a text in blob in the database with the accentuation and such..
when I run it through mpdf IF is not placed utf-8_encode
in the read variable returns me this error.
I asked the question because I already tested the other answers in the stack and didn’t solve it...
here is the code with the latest solution attempt
$mpdf = new mPDF();
$mpdf->mirrorMargins = true;
$mpdf->SetDisplayMode('fullpage','two');
$PDFContent = mb_convert_encoding($PDFContent, 'UTF-8', 'UTF-8');
$mpdf->WriteHTML($PDFContent);
ob_clean();
$mpdf->Output("./pdf_contratos/".$nome_c_pdf.".pdf");