Commit 76449b6a by Ned Batchelder

Merge pull request #12400 from reciproco/master

Fix CRI-57 Bug
parents 6a0c6f7a c9727a2b
......@@ -24,7 +24,9 @@ def create_csv_response(filename, header, datarows):
quotechar='"',
quoting=csv.QUOTE_ALL)
csvwriter.writerow(header)
encoded_header = [unicode(s).encode('utf-8') for s in header]
csvwriter.writerow(encoded_header)
for datarow in datarows:
encoded_row = [unicode(s).encode('utf-8') for s in datarow]
csvwriter.writerow(encoded_row)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment