ImageTTFBBox & any2eucjp 和jpgraph不能输入汉字的解决办法

用jpgraph 怎么也输入不了汉字,在自己的机器上开发没有一点问题,搬到服务器上就出问题了。

在服务器上作实验,只要是汉字就会出现这个:“Warning: imagettfbbox() [function.imagettfbbox]: any2eucjp(): invalid code in input string in /opt/web/htdocs/lnsnms/htdocs/21/make_button.php on line 38”;
仔细研究一下终于找到解决办法了。

就是在编译的时候多了这个选项。
--enable-gd-jis-conv
去掉以后就可以了,好像是个bug,不过还好暂时解决了。也能用了。
贴上官方的解释:

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

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

Please try using:

- Without mbstring, with jis enabled
- Without mbstring, without jis


官方的解释原址:http://bugs.php.net/bug.php?id=42218

It will help us (you and us) to figure out what break your config.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值