Adding encoding information.

fixes #475
This commit is contained in:
Antoine Nguyen
2013-09-03 19:00:50 +02:00
parent becc182267
commit 70dafb1f98
+1 -1
View File
@@ -261,7 +261,7 @@ def download_filters_set(request, name):
return ajax_response(request, "ko", respmsg=str(e))
resp = HttpResponse(script)
resp["Content-Type"] = "text/plain"
resp["Content-Type"] = "text/plain; charset=utf-8"
resp["Content-Length"] = len(script)
resp["Content-Disposition"] = 'attachment; filename="%s.txt"' % name
return resp