________ ________>>> s = 'RĂ©mi' ________>>> type(s) ________<type 'str'> ________>>> s.decode('utf-8') ________Traceback (most recent call last): ________ File "<stdin>", line 1, in ? ________ File "encodings/utf_8.py", line 16, in decode ________UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1-3: ________invalid data
And why you surprized on that? (a non-UTF-8 terminal as Karen mentioned) It just means that "s" is NOT a valid sequence of bytes of UTF-8 data. The same case when you're trying to decode (FROM UTF-8) a data retrieved from your mysql table. I don't know MySQL but what if your data got messed and corrupted after you applied all those "ALTER...CONVERT TO CHARACTER SET utf8 collate.." statements against your tables? If you show to us *a binary/hex representation* of some "French" word from your table it could clear up everything. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---