Fix unicode issue in query_builder csv export function
This commit is contained in:
parent
13398e17d8
commit
f395c19be2
1 changed files with 3 additions and 0 deletions
|
|
@ -321,6 +321,9 @@ def runquery_csv():
|
|||
f = StringIO()
|
||||
writer = csv.writer(f)
|
||||
for r in rows:
|
||||
for i in xrange(len(r)):
|
||||
if type(r[i]) is unicode:
|
||||
r[i] = r[i].encode('utf-8')
|
||||
writer.writerow(r)
|
||||
|
||||
f.seek(0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue