Я пробовал this SO answer, this doc is inapplicable как я бегу nginx, я добавил charset utf-8;
в мою конфигурацию nginx, и я до сих пор получаю эту ошибку.UnicodeEncodeError с nginx и django
Обобщенная отслеживающий здесь:
UnicodeEncodeError at/
'ascii' codec can't encode character u'\xe1' in position 69: ordinal not in range(128)
Request Method: GET
Request URL: http://django/
Django Version: 1.4.20
Exception Type: UnicodeEncodeError
Exception Value:
'ascii' codec can't encode character u'\xe1' in position 69: ordinal not in range(128)
Exception Location: /opt/envs/venv/lib/python2.7/genericpath.py in getmtime, line 54
Unicode error hint
The string that could not be encoded/decoded was: choacán.jpg
У вас USE_I18N = True в settings.py? – nnmware
Да, да. Это всегда было. Это сайт, который работает в другой коробке, так что вряд ли это будет проблемой django, поскольку тот же код, тот же самый venv, те же настройки используются в другом месте с успехом. –