From ad7e84ad0ec8207aafeacbfd9476dcaf9eed5060 Mon Sep 17 00:00:00 2001 From: Ibrahim Awwal Date: Sat, 22 Sep 2012 23:01:34 -0700 Subject: [PATCH] Fix forums in IE9; apparently it's just very strict about the charset being a valid identifier. utf8 is not a valid identifier, utf-8 is. --- lms/djangoapps/django_comment_client/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/django_comment_client/utils.py b/lms/djangoapps/django_comment_client/utils.py index 1a77bf1434..b3a1626d22 100644 --- a/lms/djangoapps/django_comment_client/utils.py +++ b/lms/djangoapps/django_comment_client/utils.py @@ -204,7 +204,7 @@ class JsonResponse(HttpResponse): def __init__(self, data=None): content = simplejson.dumps(data) super(JsonResponse, self).__init__(content, - mimetype='application/json; charset=utf8') + mimetype='application/json; charset=utf-8') class JsonError(HttpResponse): def __init__(self, error_messages=[], status=400): @@ -214,7 +214,7 @@ class JsonError(HttpResponse): indent=2, ensure_ascii=False) super(JsonError, self).__init__(content, - mimetype='application/json; charset=utf8', status=status) + mimetype='application/json; charset=utf-8', status=status) class HtmlResponse(HttpResponse): def __init__(self, html=''):