yml wrote: >f = open("departments.txt") >regexobj = re.compile("([0-9]+)\s+([\w\s?]+)",re.UNICODE) > > >for l in f.readlines(): > fileencoding = "iso-8859-1" > > Ah! I was just about to suggest this. Your file seems to be not in utf-8 actually. And since you were opening it with codecs.open("...", encoding='utf-8') this was causing the error.
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---