【发布时间】:2016-09-13 09:50:21
【问题描述】:
当我使用 phantom 和带有俄语字符的 html-to-pdf 渲染 jsreport pdf 时,它们变成了奇怪的符号。 jsreport 中是否有任何设置,或者我需要在服务器机器中使用正确的字体?
【问题讨论】:
标签: pdf-generation jsreport cyrillic
当我使用 phantom 和带有俄语字符的 html-to-pdf 渲染 jsreport pdf 时,它们变成了奇怪的符号。 jsreport 中是否有任何设置,或者我需要在服务器机器中使用正确的字体?
【问题讨论】:
标签: pdf-generation jsreport cyrillic
http://jsreport.net/learn/phantom-pdf
Phantom-pdf 目前无法打印某些国家字符 默认。为了能够将正确的国家字符打印成 pdf 你 需要先在你的 html 中设置 utf-8 字符集。
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body>
Česko
</body>
</html>
【讨论】: