tcpdf 编码汉字 [英] tcpdf encode chinese character

查看:54
本文介绍了tcpdf 编码汉字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 tcpdf 创建一个 pdf,但它不能显示汉字,而是只显示方框.我使用了他们提供的这个 example 然后将 cache/utf8test.txt 更改为中文字符,但是它显示方框".我该如何解决这个问题?

I am using tcpdf to create a pdf, but it cant show chinese character, instead it just show square box. I used this example that provided by them and then changed the cache/utf8test.txt to chinese character but it show "square box". How am I solve this?

推荐答案

您需要使用支持 unicode 的字体,就像您可以使用 stsongstdlight 中文字体一样.希望有帮助

You need to use unicode supporting font, like you can use stsongstdlight font for chinese. Hope it helps

这篇关于tcpdf 编码汉字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆