当前位置:   article > 正文

ImageTTFBBox & any2eucjp 和jpgraph不能输入汉字的解决办法_imagettfbbox(): any2eucjp(): invalid code in input

imagettfbbox(): any2eucjp(): invalid code in input string
用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.
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号