php5项目迁移到php7.3imagefttext字不正确

php5项目迁移到php7.3后imagefttext字不正确或者报错

imagefttext(): any2eucjp(): invalid code in input string

转下字符串

$str=mb_convert_encoding($str, "html-entities", "utf-8");;

最后输出效果

完美

发布了51 篇原创文章 · 获赞 17 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/wq57885/article/details/94922347