问题描述:

I generate a PDF from symfony2 with the library wkhtmltopdf. The html is a twig layout with some variables to display. The generation works but stranges symbols replace latin caracters. If I copy-paste symbols in notepad, I can read letters. In my twig header, i put

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

网友答案:

I find, my linux server hasn't good package installed for font... I just do this :

sudo yum install urw-fonts libXext openssl-devel

and it works nice !

相关阅读:
Top