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

前端 未结 4 1466
离开以前
离开以前 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:03

    add the following lines to your abissk_uwsgi.ini file to enforce uwsgi to use UTF-8.

    env LANG=en_US.utf8
    env LC_ALL=en_US.UTF-8
    env LC_LANG=en_US.UTF-8
    

提交回复
热议问题