Commits

Olemis Lang committed 0af8e70

GViz QL : Encode pivot values using UTF-8 when transforming into column names

Comments (0)

Files changed (1)

trac-dev/gviz/tracgviz/gvizql.py

     def pivot_label(value):
         """Generate label for group key in pivot clause
         """
-        return ','.join(str(x) if x is not None else 'null' for x in value)
+        return ','.join(x.encode('utf-8') if x is not None else 'null' for x in value)
 
     if hasattr(schema, '__schema__'):
         gb_schema = schema