diff options
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 |
commit | d1d3f6457eeaf9114396d8cc1f1937ca6202772c (patch) | |
tree | da1cf0867f7053d64f8c1cb1cf0449f590551457 /ishtar_common/views.py | |
parent | 5551f953044690cf4ec2a37c0c177bc759b8372e (diff) | |
download | Ishtar-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.py | 2 |
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 |