On Mon, 2009-06-29 at 13:05 -0700, Danny Davidson wrote: > I wouldn't consider myself an expert with Unicdoe, but I do know that > pickle and cPickle use ASCII for serialization. If you have utf-8 > characters stored as attributes in the object you're pickling, that > could cause the codec error. >
Not since 2003. http://www.python.org/dev/peps/pep-0307/ >>> a=u'中文' >>> a u'\u4e2d\u6587' >>> pickle.dumps(a) 'V\\u4e2d\\u6587\np0\n.' Cheers Tom --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---