PDF Accentuation for HTML2PDF Library

1

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.

    
asked by anonymous 09.09.2014 / 01:44

1 answer

1

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');
    
09.09.2014 / 11:31