summaryrefslogtreecommitdiff
path: root/giscanner/transformer.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/transformer.py')
-rw-r--r--giscanner/transformer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index f07e8d17..4cd24484 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -608,7 +608,7 @@ raise ValueError."""
return None
if symbol.const_string is not None:
typeval = ast.TYPE_STRING
- value = symbol.const_string
+ value = unicode(symbol.const_string, 'utf-8')
elif symbol.const_int is not None:
typeval = ast.TYPE_INT
value = '%d' % (symbol.const_int, )