I am generating a PDF only that I need the library to allow the use of accentuation? Does anyone have an idea how to do this in HTML2PDF? Thankful.
I am generating a PDF only that I need the library to allow the use of accentuation? Does anyone have an idea how to do this in HTML2PDF? Thankful.
HTML2PDF uses latin1_swedish_ci
to generate your pdfs.
to correct this you just have to set utf8_encode()
or iconv()
and regenerate.
For more information on utf8_encode link
Or try adding utf-8 inline
$html2pdf = new HTML2PDF('P', 'A4', 'pt');
It would look like this:
$html2pdf = new HTML2PDF('P', 'A4', 'pt', true, 'UTF-8');