【问题标题】:Jsreport rendering russian languagejsreport渲染俄语
【发布时间】:2016-09-13 09:50:21
【问题描述】:

当我使用 phantom 和带有俄语字符的 html-to-pdf 渲染 jsreport pdf 时,它们变成了奇怪的符号。 jsreport 中是否有任何设置,或者我需要在服务器机器中使用正确的字体?

【问题讨论】:

    标签: pdf-generation jsreport cyrillic


    【解决方案1】:

    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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-20
      • 2015-09-23
      • 2023-04-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多