using UTF-8 instead of iso-8859-1 in chart axis name

488 views
Skip to first unread message

Vincent Bruneau

unread,
Jun 11, 2012, 11:36:07 AM6/11/12
to google-visua...@googlegroups.com
Hello,

I'm trying to use special characters in my chart axis name.
I started by character encoding in iso-8859-1 as "sup\xe9rieur" and it works in html (I obtain "é").
Nevertheless I need to use utf-8 now and when a try "sup\xc3\xarieur" it doesn't work (weird char are printed).
I had change my browser to it use utf-8 but no way.

Does GoogleChart support UTF-8 ? Or has it any option in order to configure that ?

Thank.

EZChart

unread,
Jun 13, 2012, 1:55:57 AM6/13/12
to google-visua...@googlegroups.com
As far as I know this is a JavaScript issue and has nothing to do with Google Charts.
When specifying Unicode characters in JavaScript, you can only use UTF-16 encoding (see http://javascript.about.com/library/blunicode.htm).

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/srSUhYBEFtUJ.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

Vincent Bruneau

unread,
Jun 14, 2012, 11:04:33 AM6/14/12
to Google Visualization API
Javascript can use UTF-8.
In my case I must use decodeURIComponent( escape()) on all string in
order to UTF-8 be correctly printed.

thanks.
Reply all
Reply to author
Forward
0 new messages