Internationalization issues with labels

142 views
Skip to first unread message

briansuda

unread,
Dec 6, 2007, 3:38:11 PM12/6/07
to Google Chart API
i have started to walk through the examples, and changed the values in
the chart to localized month names which use non-ASCII characters, Á,
Ó, etc.

http://chart.apis.google.com/chart?cht=lc&chs=700x400&chd=s:helloWorld&chxt=x,y&chxl=0:|%C1ug|%D3ct|N%F3v|Dec|Jan|1:|0+KB|50+Kb

Google converts the Á to %C1, which is the correct mapping, but the
graphic just shows a ?

is this a bug, or is there no plan to support non-ASCII characters?

-brian

Sascha Brawer

unread,
Dec 6, 2007, 4:27:19 PM12/6/07
to Google Chart API
> support non-ASCII characters?

Try passing the strings in UTF-8 encoding. Here is a sample:

http://chart.apis.google.com/chart?cht=v&chs=200x100&chd=t:100,80,60,20,10,10,1&chdl=Symbols:+%E2%88%80x:+x%e2%88%89%CE%A8%7CGreek:+%CE%94%CE%A6%7CCyrillic:+%D0%AF%D1%8E
(I don't know Russian or Greek, so I don't know if these labels mean
anything).

More about UTF-8: http://en.wikipedia.org/wiki/UTF-8
Generally, there's also lots of good documents on http://www.unicode.org

However, our server currently uses a font with a somewhat limited
repertoire of glyphs. Also, we currently don't yet do the re-ordering
needed for many "complex" scripts, such as Thai, Arabic, Hebrew or
Devanagari. Supporting more writing systems is definitely one of the
items on our to-do list.

Cheers,

-- Sascha

On Dec 6, 9:38 pm, briansuda <brian.s...@gmail.com> wrote:
> i have started to walk through the examples, and changed the values in
> the chart to localized month names which use non-ASCII characters, Á,
> Ó, etc.
>
> http://chart.apis.google.com/chart?cht=lc&chs=700x400&chd=s:helloWorl...%C1ug|%D3ct|N%F3v|Dec|Jan|1:|0+KB|50+Kb

briansuda

unread,
Dec 6, 2007, 5:14:02 PM12/6/07
to Google Chart API
On Dec 6, 9:27 pm, Sascha Brawer <sas...@google.com> wrote:
> > support non-ASCII characters?
>
> Try passing the strings in UTF-8 encoding. Here is a sample:
>
> http://chart.apis.google.com/chart?cht=v&chs=200x100&chd=t:100,80,60,...
> (I don't know Russian or Greek, so I don't know if these labels mean
> anything).

--- thanks for passing that along, i think it is actually backwards (i
might be wrong), but when i pass it the 2 character representation i
get the correct character. I want an á character, so i type that in
the URL but firefox converts that to %E1 (which i think is iso-5589)
and i get a question mark in the image. When i use %C3%A1 to represent
á it seems to work.

This might be a browser issue, not a charts api issue. Something for
others to watch out for!

-brian
Reply all
Reply to author
Forward
0 new messages