PHP GD和特殊字符

时间:2013-09-22 17:59:05

标签: php encoding character-encoding gd

我创建了一个脚本来从文本生成图像。我正在使用TTF字体,“Bebas Neue”,我遇到了特殊字符的问题。例如:

In html this text is fine ♥ 

In the image this text is not fine, the heart view as a rectangule or another wrong symbol ♥ 

与其他符号相同的问题:☼♪♂♥

我将此标题添加到页面的开头:

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

谢谢!

抱歉,我忘了用Arial字体告诉你,符号看起来不错

0 个答案:

没有答案
相关问题