I am getting the error
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 138: ordinal not in range(128)
when I try to do
from django.utils.encoding import smart_str
u'{}'.format(smart_str('ø'))
but the documentation says that the default encoding for this function is utf-8 which I thought should include 'ø'. I am using Django 1.11 on Python 2.7. What am I missing here?