Same effect
json_data = simplejson.dumps((json_data), ensure_ascii=False)
return HttpResponse(json_data, mimetype=text-x-json; charset=utf-8')

"""
 If ``ensure_ascii`` is ``False``, then the some chunks written to
``fp``
    may be ``unicode`` instances, subject to normal Python ``str`` to
    ``unicode`` coercion rules.  Unless ``fp.write()`` explicitly
    understands ``unicode`` (as in ``codecs.getwriter()``) this is
likely
    to cause an error.
"""


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to