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

来源:互联网 发布:返利网程序源码 编辑:程序博客网 时间:2024/06/10 04:49

当我们在使用imggettftext 函数的时候会遇到这个问题


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


一切都没有错 这个是php的一个bug


https://bugs.php.net/bug.php?id=42218


原因   编译php的时候 --enable-gd-jis-conv 开启这个选项

这个是对 日文的支持


即使我们使用的 utf8 编码 (imagettftext 只支持 utf8 编码) 但是还是会被识别成  日文(日文同样是方块字)


不修改php参数的情况下还没找到解决方案


目前的办法只能是 重新编译 php  取消 --enable-gd-jis-conv 这个参数







0 0
原创粉丝点击