1👍
✅
Actually it’s worth to check the result of the sys.getfilesystemencoding() .
On apache2 it results ascii to me, on dev server it results utf-8 .
So, to solve the problem, You need to add something like that to /etc/apache2/envvars:
export LANG='en_US.UTF-8'
export LC_ALL='en_US.UTF-8'
. That should do the trick on debian.
Link to similar problem:
https://groups.google.com/g/modwsgi/c/MRsMc9yehBI?pli=1
.
Source:stackexchange.com