Accentuation in pdf for HTML2PDF library

Asked

Viewed 881 times

1

I am generating a PDF only that I need the library to allow the use of accentuation ? Does anyone have an idea of how to do this in HTML2PDF? Grateful.

1 answer

1


HTML2PDF uses the encoding latin1_swedish_ci to generate your pdf. to fix this just you set setar as utf8_encode() or iconv() and generate again.

For more information on utf8_encode http://php.net/manual/fr/function.utf8-encode.php


or try adding utf-8 inline

$html2pdf = new HTML2PDF('P', 'A4', 'pt');

Would look like this:

$html2pdf = new HTML2PDF('P', 'A4', 'pt', true, 'UTF-8');
  • Thanks Thallyson really worth! Funfou!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.