Skip to content

Commit

Permalink
[hotfix] encode csv to utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Nov 9, 2016
1 parent ad1cd55 commit 6a15679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caravel/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2091,7 +2091,7 @@ def csv(self, client_id):
sql = query.select_sql or query.sql
df = query.database.get_df(sql, query.schema)
# TODO(bkyryliuk): add compression=gzip for big files.
csv = df.to_csv(index=False)
csv = df.to_csv(index=False, encoding='utf-8')
response = Response(csv, mimetype='text/csv')
response.headers['Content-Disposition'] = (
'attachment; filename={}.csv'.format(query.name))
Expand Down

0 comments on commit 6a15679

Please sign in to comment.