imagestring() 函数中的 utf-8 字符
utf-8 characters in imagestring() function
我在 imagestring() 函数中遇到 UTF-8 字符问题,我正在尝试在图像上写这些字符“აბგდევზ”。 imagestring($img,5,15,22,"აბგდევზ",$cor);
有什么想法吗?
函数imagestring()
不支持UTF-8字符。如果您需要这些支持,则需要使用 imagettftext()
,它支持 UTF-8,但需要链接到 TrueType 字体。
我在 imagestring() 函数中遇到 UTF-8 字符问题,我正在尝试在图像上写这些字符“აბგდევზ”。 imagestring($img,5,15,22,"აბგდევზ",$cor);
有什么想法吗?
函数imagestring()
不支持UTF-8字符。如果您需要这些支持,则需要使用 imagettftext()
,它支持 UTF-8,但需要链接到 TrueType 字体。