On Sat, Feb 7, 2009 at 11:56 AM, redmonkey <michele.mem...@googlemail.com>wrote:
> > Hey everyone, > > I'm trying to create django model instances from data stored in a flat > text file but I get `force_unicode` errors when the script comes > across one of the data items containing the "é" character. > > Can anyone explain to me what this problem is and now I can fix it? I > can't really get my head around unicode, ascii and UTF-8 stuff. > > If you expect anyone on the list to help, you really need to share some snippets of the code you are using to read the data from the file and create Django model instances, plus the full traceback you get when it runs into trouble. Django certainly handles unicode data in models, so there's something specific about what you are doing that is causing a problem. Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---