定位到是 gunicorn 的编码问题, 经查找可以为 gunicorn 添加环境变量,在 /etc/supervisor/supervisord.conf 添加: environment=LANG=zh_CN.UTF-8,LC_ALL=zh_CN.UTF-8 然后需要重启 supervisord, 搞定,下班
environment=LANG=zh_CN.UTF-8,LC_ALL=zh_CN.UTF-8