2008/6/24, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > The unicode stuff continues to give me no end of headaches. This > morning I keep getting the error below. As near as I can tell, when I > call AddManipulator it's getting the related fields, and there's a bad > character somewhere in there. My question is, how can I find it? > > "UnicodeEncodeError: 'ascii' codec can't encode character u'\xb4' in > position 21: ordinal not in range(128)" isn't very helpful... I don't > even know which DB record it's in.
Check, in order, if you have set the unicode encoding in the db, if the source file is coded in unicode and if your functions returns unicode string (i.e. u'àé' instead of 'àé'). It seems your choices values are using strange characters, so if you haven't set your encoding in the source with choices dictionary maybe that's the problem. -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggiali 2/bis, 47100 Forlì (FC) Tel.: +39 0543 798985 - Fax: +39 0543 579928 Rispetta l'ambiente: se non ti è necessario, non stampare questa mail --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---