我正在使用此 wkhtmltopdf 0.12.3 (with patched qt)
版本的wkhtmltopdf。与蒙特塞拉特字体家庭。
html就是这样,
<strong>
This Agreement for home staging and rental of furniture and accessories
</strong>
(“Agreement”) is entered this
输出为,
t of Hous for and Home straging and Re ntal of forniture和 acce ssorie s(同意mentâ)
和,
<u>Services</u>
Subject to the terms and conditions of this </span>
输出为,
se rvice s subje ct to te rms和此条件
为什么这些Â
介于两者之间?
我试图替换这样的报价和空间,
$formData = str_replace(' ', ' ', $formData);
$formData = str_replace('"', '"', $formData);
$formData = str_replace('“', '"', $formData);
$formData = str_replace('”', '"', $formData);
,但没有帮助。难道我做错了什么?搜索但找不到解决方案。
head tag之后写这篇文章:
<meta charset="UTF-8" />