Commits

Sasha Vincic committed c5f93c0

utf8 -> utf-8 since IE has problems with JSON/Diazo

Comments (0)

Files changed (2)

lfs/catalog/views.py

         "message": msg,
     }, cls=LazyEncoder)
 
-    return HttpResponse(result, content_type='application/json; charset=utf8')
+    return HttpResponse(result, content_type='application/json; charset=utf-8')
 
 
 def calculate_packing(request, id, quantity=None, as_string=False, template_name="lfs/catalog/packing_result.html"):
         "html": html,
     }, cls=LazyEncoder)
 
-    return HttpResponse(result, content_type='application/json; charset=utf8')
+    return HttpResponse(result, content_type='application/json; charset=utf-8')
 
 
 def calculate_price(request, id):
         "message": _("Price has been changed according to your selection."),
     }, cls=LazyEncoder)
 
-    return HttpResponse(result, content_type='application/json; charset=utf8')
+    return HttpResponse(result, content_type='application/json; charset=utf-8')
 
 
 def select_variant_from_properties(request):
         "message": msg,
     }, cls=LazyEncoder)
 
-    return HttpResponse(result, content_type='application/json; charset=utf8')
+    return HttpResponse(result, content_type='application/json; charset=utf-8')
 
 
 def set_filter(request, category_slug, property_id, value=None, min=None, max=None):

lfs/manage/views/product/product.py

         "message": message,
     }, cls=LazyEncoder)
 
-    return HttpResponse(result, content_type='application/json; charset=utf8')
+    return HttpResponse(result, content_type='application/json; charset=utf-8')
 
 
 @permission_required("core.manage_shop", login_url="/login/")
     msg = _(u"Product filters have been reset")
     result = simplejson.dumps(
         {"html": html, "message": msg, }, cls=LazyEncoder)
-    return HttpResponse(result, content_type='application/json; charset=utf8')
+    return HttpResponse(result, content_type='application/json; charset=utf-8')
 
 
 
         "message": msg,
     }, cls=LazyEncoder)
 
-    return HttpResponse(result, content_type='application/json; charset=utf8')
+    return HttpResponse(result, content_type='application/json; charset=utf-8')
 
 
 @permission_required("core.manage_shop", login_url="/login/")
         "message": msg,
     }, cls=LazyEncoder)
 
-    return HttpResponse(result, content_type='application/json; charset=utf8')
+    return HttpResponse(result, content_type='application/json; charset=utf-8')
 
 
 @permission_required("core.manage_shop", login_url="/login/")
     )
 
     return HttpResponse(
-        simplejson.dumps({"html": html}, cls=LazyEncoder), content_type='application/json; charset=utf8')
+        simplejson.dumps({"html": html}, cls=LazyEncoder), content_type='application/json; charset=utf-8')
 
 
 @permission_required("core.manage_shop", login_url="/login/")