Why works when I change from Nginx to Apache2? If I run the development server (runserver) works too.
Erick Almeida ( 2012-07-12 13:29:14 -0500 )editProbably b/c of the differences in how python interpreter was started, possibly due to compilation opions in the webserver. Remember that in apache you're probably using mod_wsgi, for nginx - gunicorn, uwsgi or something like that. Look at what actually runs python in your setup. You can use a trick in the .wsgi script sys.stderr.write(...whichever variable you want to test) to debug. Test what is default encoding in django in those cases. There is some documentation on django site about it.
On the subject of default encoding - take a look here: http://blog.ianbicking.org/illusive-setdefaultencoding.html I've tested on two systems and on one (my mac laptop - I don't have this issue, and another - ubuntu server - I have the issue). It is definitely in the python setup of default character encoding.
Evgeny ( 2012-07-12 15:32:20 -0500 )edit
Anything interesting in the access/error logs?
Evgeny ( 2012-07-10 13:04:35 -0500 )editErick, you can use 'shift-enter' to add new lines in the comments and code can be formatted with markdown - indent lines by 4 chars and precede by one empty. For a long log - just paste into the question body.
Evgeny ( 2012-07-12 13:13:05 -0500 )edit