Commit 0177f381 by Rocky Duan

fixed unicode bug

parent 2aee1b2f
......@@ -101,9 +101,7 @@ def initialize_discussion_info(request, course):
class JsonResponse(HttpResponse):
def __init__(self, data=None):
content = simplejson.dumps(data,
indent=2,
ensure_ascii=False)
content = simplejson.dumps(data)
super(JsonResponse, self).__init__(content,
mimetype='application/json; charset=utf8')
......
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