Specify `charset=UTF-8` when serving non-base64 files

Grant Nestor 9 years ago
parent d00b7e3e17
commit e1d476ae98

@ -52,7 +52,7 @@ class FilesHandler(IPythonHandler):
if model['format'] == 'base64':
self.set_header('Content-Type', 'application/octet-stream')
else:
self.set_header('Content-Type', 'text/plain')
self.set_header('Content-Type', 'text/plain; charset=UTF-8')
if include_body:
if model['format'] == 'base64':

Loading…
Cancel
Save