jpgraph字符集问题
我使用 php
jpgraph 库,但字符集存在小问题。 假设 graph.php
生成图像,我从 some.php
some.php
...
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
...
<img src="graph.php" />
...
调用它,如您所见,我在<中设置字符集code>some.php,但它不显示图形的文本,这是外语的。(也许我必须在 graph.php
中设置它?但如何?)
问题是什么?
谢谢 更新
即使我尝试输入数字 HTML 编码也会 这里,它不适用于亚美尼亚语言:/
I use php
jpgraph library, but there i a small problem with charsets.
lets assume graph.php
generates the image, and i call it from some.php
some.php
...
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
...
<img src="graph.php" />
...
as you see, i set charsets in some.php
, but it doesn't show the text of the graph, which is in foreign language.(maybe i must set it in graph.php
? but how?)
What is the problem?
Thanks
UPDATE
even when i try to enter numerical HTML encoding
of the Unicode character from here, it doesn't work for Armenia language:/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
元标记仅适用于页面的内容,不适用于页面内显示的图像(甚至是由 graph.php 脚本动态生成的图像)
引用自 jpgraph 常见问题解答
The meta tag only applies to the content of the page, not to images displayed within the page (even images generated dynamically by your graph.php script)
Quoting from the jpgraph faq