Defining charset to "utf8".

TNL-6553
This commit is contained in:
muzaffaryousaf
2017-02-22 17:39:13 +05:00
parent e50a3c57b6
commit f16550519e

View File

@@ -265,11 +265,12 @@ class VideoStudentViewHandlers(object):
return Response(status=404)
else:
response = Response(
text=transcript_content,
transcript_content,
headerlist=[
('Content-Disposition', 'attachment; filename="{}"'.format(transcript_filename.encode('utf8'))),
('Content-Language', self.transcript_language),
]
],
charset='utf8'
)
response.content_type = transcript_mime_type