wkhtmltopdf footer-html encoding utf-8

后端 未结 2 506
悲哀的现实
悲哀的现实 2021-02-05 01:20

wkhtmltopdf --encoding utf-8 is not working for --footer-html.

I am using the following command. Both HTML files are also in utf8 format.

wkhtmltopdf  --         


        
相关标签:
2条回答
  • 2021-02-05 02:00

    Try adding the following line in the HTML head element of the footer:

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    0 讨论(0)
  • 2021-02-05 02:06

    Make sure you have specific font installed there. I need Hindi (Indian Language) on my PDF files. putting meta tag had not solved my problem. So i installed hindi fonts on my debian box by

    sudo apt-get install fonts-indic
    
    0 讨论(0)
提交回复
热议问题