summaryrefslogtreecommitdiff
path: root/ishtar_common/views.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-10-31 13:14:48 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-10-31 13:14:48 +0100
commitd1d3f6457eeaf9114396d8cc1f1937ca6202772c (patch)
treeda1cf0867f7053d64f8c1cb1cf0449f590551457 /ishtar_common/views.py
parent5551f953044690cf4ec2a37c0c177bc759b8372e (diff)
downloadIshtar-d1d3f6457eeaf9114396d8cc1f1937ca6202772c.tar.bz2
Ishtar-d1d3f6457eeaf9114396d8cc1f1937ca6202772c.zip
Full CSV export: fix potential encoding error
Diffstat (limited to 'ishtar_common/views.py')
-rw-r--r--ishtar_common/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/views.py b/ishtar_common/views.py
index 8d475aff5..d8c5b1997 100644
--- a/ishtar_common/views.py
+++ b/ishtar_common/views.py
@@ -581,6 +581,8 @@ def format_val(val):
return unicode(_(u"True"))
else:
return unicode(_(u"False"))
+ if type(val) == str:
+ val = val.decode('utf-8')
return unicode(val)
HIERARCHIC_LEVELS = 5