diff options
-rw-r--r-- | program/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/views.py b/program/views.py index 49bcd57..bc7700e 100644 --- a/program/views.py +++ b/program/views.py @@ -146,7 +146,7 @@ def json_day_schedule(request, year=None, month=None, day=None): else: schedule.append((ts.start.strftime('%H:%M:%S'), ts.programslot.show.name, -1)) - return HttpResponse(json.dumps(schedule), content_type="application/json; charset=utf-8") + return HttpResponse(json.dumps(schedule, ensure_ascii=False, encoding='utf8').encode('utf8'), content_type="application/json; charset=utf-8") def tofirstdayinisoweek(year, week): # http://stackoverflow.com/questions/5882405/get-date-from-iso-week-number-in-python |