【问题标题】:Tcpdf using special letters in function OUTPUTTcpdf 在函数 OUTPUT 中使用特殊字母
【发布时间】:2014-01-14 17:26:52
【问题描述】:

我想将生成的 Pdf 文件的名称输出为:Kuća_{id value}

代码行:

$pdf->输出('Kuća_' . $id. '.pdf', 'D');

但输出是:Kuca_{id value}

// 设置字体 $pdf->SetFont('freesans');

字体没问题,我在 pdf 页面中生成了 unicode 字母..还有:

header('Content-Type: text/html; charset=UTF-8');

在php页面上设置

Tnx

【问题讨论】:

    标签: tcpdf


    【解决方案1】:

    来自 tcpdf 文档:

    参数 $name (string) 保存时文件的名称。请注意,删除了特殊字符,并将空白字符替换为下划线字符。

    【讨论】:

      猜你喜欢
      • 2015-09-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-14
      • 2013-05-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多