Commit f1655051 by muzaffaryousaf

Defining charset to "utf8".

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