Brandon Thomson
unread,Mar 6, 2009, 10:22:54 PM3/6/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Python Google Chart
This is my diff for utf-8 support in the axis labels... it seems to
work well enough.
=== modified file 'root/pygooglechart.py'
--- root/pygooglechart.py 2009-01-24 20:04:47 +0000
+++ root/pygooglechart.py 2009-03-05 13:54:01 +0000
@@ -604,7 +604,7 @@
def set_axis_labels(self, axis_type, values):
assert(axis_type in Axis.TYPES)
- values = [urllib.quote(str(a)) for a in values]
+ values = [urllib.quote(a.encode("utf-8")) for a in values]
axis_index = len(self.axis)
axis = LabelAxis(axis_index, axis_type, values)
self.axis.append(axis)