uWSGI / Emperor: UnicodeEncodeError: 'ascii' codec can't encode character

前端 未结 4 1469
离开以前
离开以前 2021-01-13 05:30

i have big problem with encoding on uwsgi/emeror/nginx server. My app is developed to batch excel files processing.

I use latest version flask and flask-extensions a

4条回答
  •  心在旅途
    2021-01-13 06:17

    None of the variables LANG, LC_ALL, LC_LANG helped me.

    I fixed the bug only adding this to the uwsgi.ini:

    env = PYTHONIOENCODING=UTF-8

提交回复
热议问题