容器技术交流

 找回密码
 立即注册
查看: 4070|回复: 0

ImageTTFText any2eucjp 汉字生成图片乱码

[复制链接]
发表于 2013-5-23 15:12:28 | 显示全部楼层 |阅读模式
  1. Warning: imagettftext() [function.imagettftext]: any2eucjp(): invalid code in input string in /home/ftp/1520/592120-20130423-mfN/www.####.com/a_include/func/Funcs.inc.php on line 30
复制代码




上面是错误提示信息 ,并且 汉字生成图片乱码。


网上有人说
  1. 1.编译php级:
  2. 就是在编译的时候多了这个选项。
  3. --enable-gd-jis-conv
  4. 去掉以后就可以了,好像是个bug,不过还好暂时解决了。也能用了。
  5. 贴上官方的解释:

  6. There is no fallback ot UTF-8. It accepts UTF-8 by default. The problem
  7. about JIS is when you pass a non UTF-8 string, it can be seen as JIS
  8. enconded string.

  9. About the mbstring issues, I have no idea how it works and how it
  10. affects the input parameters. It is something happening before we got
  11. the hand in the gd function.

  12. Please try using:

  13. - Without mbstring, with jis enabled
  14. - Without mbstring, without jis
复制代码
我用自己的路搭建的环境,请问现在要怎么办呢?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-11 11:09 , Processed in 0.029756 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表