Everybody, thank you for feedback. Karen, you were absolutely right! I've changed collation to utf8_unicode_ci and Django is converting strings to unicode! This is fine! Thanks a lot!
RTFM :-) On Sep 18, 6:12 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > Since you say you are using UTF8_BIN collation on MySQL, be sure to read: > > http://docs.djangoproject.com/en/dev/ref/databases/#collation-settings > > When you specify a binary collation in MySQL, your application code has to > take on the responsibility of transforming bytestrings returned by the > database to unicode objects. As noted in the docs, you can use > django.utils.encoding.smart_unicode() to do this. You should use this in > your __unicode__ method to coerce the bytestrings coming from the database > to unicode. Failure to do this results in many problems like what you have > been reporting, as the admin app relies on the model's __unicode__ method to > display/log information about objects. > > 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---