yml wrote:
> 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)
that usually means that the data you're encoding is an 8-bit string
with non-ASCII characters in it, rather than a Unicode string.
make sure you're using the right source encoding (iso-8859-1), and that
that you pass Unicode strings to the database.
(I haven't used mysql with Django, but I'm quite sure that the Django
ORM handles Unicode correctly).
</F>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---