utf8 not working for pie chart?

102 views
Skip to first unread message

eX0du5

unread,
Oct 10, 2010, 7:03:28 AM10/10/10
to Google Chart API
Hi,

I tried an example to see how utf8 characters are working with the pie
chart and have a problem with it. I read the instructions to have the
utf8 characters urlencoded and this is what I did:
http://chart.apis.google.com/chart?chs=300x225&cht=p3&chco=344566,C4C4C4&chds=0,90&chma=70,70&choe=UTF-8&chtt=Test&chd=t:27933485,20611682,34172068&chl=Un%E9%A7%85xbr%E1%83%A6cker|Test1|Test2
Now I still get them not shown as correct symbols.
I tried at the wizzard too and entered the same "name" there as well,
but it failed too.

What am I doing wrong here?

Omar Hawk

unread,
Oct 21, 2010, 7:18:12 PM10/21/10
to Google Chart API
Yes, it would be really interesting to know that, since it seems to be
a bug in the Chart API:

*********************************************************
Using only Asian symbols seem to work:
http://chart.apis.google.com/chart?chxs=0,000000,16.5&chxt=x&chs=700x405&cht=p3&chco=344566&chds=5,100&chd=t:32.787,50.82,100,42.623&chdlp=t&chl=test&chma=150,150&chtt=%E9%A7%85&chts=000000,50

Asian symbol and German Umlauts "äöü" gives a wrong result ("äöü"
shown as dots):
http://chart.apis.google.com/chart?chxs=0,000000,16.5&chxt=x&chs=700x405&cht=p3&chco=344566&chds=5,100&chd=t:32.787,50.82,100,42.623&chdlp=t&chl=test&chma=150,150&chtt=%E9%A7%85%C3%A4%C3%B6%C3%BC&chts=000000,50

The "ღ"-character seems to confuse the chart-Api completely - both
characters, the Asian character and the "ღ"-char is not shown
correctly, both as rectangles:
http://chart.apis.google.com/chart?chxs=0,000000,16.5&chxt=x&chs=700x405&cht=p3&chco=344566&chds=5,100&chd=t:32.787,50.82,100,42.623&chdlp=t&chl=test&chma=150,150&chtt=%E1%83%A6%E9%A7%85aou&chts=000000,50

If I add the German Umlauts again, all characters except of the Asian
symbol
http://chart.apis.google.com/chart?chxs=0,000000,16.5&chxt=x&chs=700x405&cht=p3&chco=344566&chds=5,100&chd=t:32.787,50.82,100,42.623&chdlp=t&chl=test&chma=150,150&chtt=%E1%83%A6%E9%A7%85%C3%A4%C3%B6%C3%BC&chts=000000,50
*********************************************************

My question now: will someone fix these bugs?

Vasiliy S

unread,
Apr 21, 2014, 11:37:35 PM4/21/14
to google-c...@googlegroups.com
I've added 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
in head section and it started displaying my country symbols correctly.
Reply all
Reply to author
Forward
0 new messages