Unicode 字符在图像上显示一组矩形。我试图以这些方式修复它,但它不起作用。
$text = mb_convert_encoding($text, 'HTML-ENTITIES',"UTF-8");
$text = html_entity_decode($text,ENT_NOQUOTES, "ISO-8859-1");
imagettftext($image, 10, 10, 50, 50, $black, $font,$text);
Unicode 字符在图像上显示一组矩形。我试图以这些方式修复它,但它不起作用。
$text = mb_convert_encoding($text, 'HTML-ENTITIES',"UTF-8");
$text = html_entity_decode($text,ENT_NOQUOTES, "ISO-8859-1");
imagettftext($image, 10, 10, 50, 50, $black, $font,$text);