Home > Backend Development > PHP Tutorial > tcpdf输出pdf文档中文乱码,该怎么处理

tcpdf输出pdf文档中文乱码,该怎么处理

WBOY
Release: 2016-06-13 10:24:32
Original
1429 people have browsed it

tcpdf输出pdf文档中文乱码
如题,我参考网上的方法已经把droidsansfallback.php、droidsansfallback.z以及droidsansfallback.ctg.z这三个文件复制到 TCPDF\fonts 下面,但是页面上有中文的地方还是一堆问号????.

------解决方案--------------------
TCPDF 的中文需要是 utf-8 编码的
FPDF 的中文需要时 gbk 编码的

向 utf-8 环境中写 gbk 字符,多数出现 ?
向 gbk 环境中写 utf-8 字符,多数是天书

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template