query = Talk.objects.filter(side=2, talk_topic
=1).order_by('pub_date')[0:30]
data = serializers.serialize('json', query, ensure_ascii=False,
fields=('content'))
return HttpResponse(data, "charset=UTF-8")
On May 21, 2:39 pm, ERic ZoU <[EMAIL PROTECTED]> wrote:
> Exception Value: 'ascii' codec can't encode characters in position
> 1-2: ordinal not in range(128)
>
> My content is UTF-8 encode. Seems doesn't work.
>
> I am using the latest version checkout from SVN
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---