1👍
✅
Django uses utf-8
for everything. I suppose that the error might be in the __unicode__()
method of your model.
You should always use the u'
prefix for all text data. So if you write something like this:
def __unicode__(self):
return 'Model: %s' % self.name
then you need to change it to:
def __unicode__(self):
return u'Model: %s' % self.name
Source:stackexchange.com