I have blob text in the database with the accent and such ..
When I pass it by SE is not put utf-8_encode
in the read variable returns this error.
I asked the question because I already tested the other answers in the stack and did not solve ...
Here is the code with the last 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");