Google Chart 支持 UTF-8 字符吗?
我在 Google Chart 中有带有 unicode 标签的标题和标签,但它们没有正确显示。
字符看起来并不像您所看到的那样。
有没有办法让谷歌图表正确显示utf-8字符?我尝试了很多事情,但没有一个对我有用。
I have title and labels with unicode labels in Google Chart, but they are not being displayed properly.
Characters do not appear right as you see.
Is there a way to make google charts display utf-8 characters properly? I've tried many things but nothing worked for me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题似乎是您提供的 unicode 代码点(E9A785 -> 99C5 和 E183A6 -> 10E6)。这些字符似乎没有显示在谷歌图表中。对其他代码点的实验(将它们指定为与查询格式相同的 UTF-8)似乎工作正常。
您的示例中的特定字符(第一个来自中日韩统一表意文字,第二个来自格鲁吉亚语)有点奇怪。您可能需要仔细检查它们是否正确。
The problem appears to be the unicode codepoints (E9A785 -> 99C5 and E183A6 -> 10E6) that you are providing. These characters do not appear to be displayed in a google chart. Experiments with other codepoints (specifying them as UTF-8 in the same format as your query) appear to work fine.
The particular characters in your example (the first is from the CJK Unified Ideograms and the second from Georgian) are a little strange. You might want to double check that they are correct.