web/ldt/ldt_utils/views.py
changeset 24 c8d5e809ffdb
parent 16 b3692a42ac79
child 26 d5b6908e4da5
--- a/web/ldt/ldt_utils/views.py	Thu Jun 10 19:19:41 2010 +0200
+++ b/web/ldt/ldt_utils/views.py	Thu Jun 10 19:58:34 2010 +0200
@@ -203,9 +203,9 @@
 
 def project_json(request, project):
 
-    mimetype = request.REQUEST.get("mimetype")
+    mimetype = request.REQUEST.get("mimetype").encode("utf-8")
     if mimetype is None:
-        mimetype = u"application/json; charset=utf-8"
+        mimetype = "application/json; charset=utf-8"
 
     resp = HttpResponse(mimetype=mimetype)
     resp['Cache-Control']='no-cache, must-revalidate'