yml wrote: >Ivan hi, >I try your recommandation but unfortunatly it is not working I am >getting the following error message: > >In [38]: r=Department(department=matches[1].encode('utf-8'), >department_number=matches[0].encode('utf-8'), country="France") >--------------------------------------------------------------------------- >exceptions.UnicodeDecodeError Traceback (most >recent call last) > >E:\instal\django\view_servicealapersonne\votreservice\_initialLoad\<console> > >UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 1: >ordinal not in range(128) > > Hm... Since you do this in console this may be caused by double-encoding your input. Do you read the actual file or enter test string from keyboard like this:
l = u'974 Réunion' ? In this case you get byte-encoded symbols treated as unicode and byte-encoded again (in short: a mess :-) ) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---