【问题标题】:Phantomjs text symbols not displayed with html to pdfPhantomjs 文本符号不与 html 到 pdf 一起显示
【发布时间】:2018-02-13 07:53:42
【问题描述】:

您好,我在 centOS 6 上运行 phantomjs,pdf 输出中不显示特殊文本符号,例如 ⊥ - up tack (u+22a5) 和 ∩ - intersection (u+2229)。我的旧服务器上的 Phantomjs 运行良好。我需要在新服务器上安装特殊字体​​吗?

【问题讨论】:

    标签: centos phantomjs


    【解决方案1】:

    我通过添加以下内容找到了答案:

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

    我的参考: https://jsreport.net/blog/national-characters-in-phantom-pdf-recipe

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-12-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-17
      • 2015-10-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多