ImageTTFBBox & any2eucjp 和jpgraph不能输入汉字的解决办法_imagettfbbox(): any2eucjp(): invalid code in input
作者:笔触狂放9 | 2024-06-14 01:41:24
赞
踩
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”;
仔细研究一下终于找到解决办法了。
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.