Merge pull request #12400 from reciproco/master

Fix CRI-57 Bug
This commit is contained in:
Ned Batchelder
2016-05-12 11:22:41 -04:00

View File

@@ -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)