From f16550519eb89e2a6074508dc8ce433202a9fa0c Mon Sep 17 00:00:00 2001 From: muzaffaryousaf Date: Wed, 22 Feb 2017 17:39:13 +0500 Subject: [PATCH] Defining charset to "utf8". TNL-6553 --- common/lib/xmodule/xmodule/video_module/video_handlers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/video_module/video_handlers.py b/common/lib/xmodule/xmodule/video_module/video_handlers.py index cf835a3bd1..be70ef0a75 100644 --- a/common/lib/xmodule/xmodule/video_module/video_handlers.py +++ b/common/lib/xmodule/xmodule/video_module/video_handlers.py @@ -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