Python - 'ascii' codec can't decode byte

前端 未结 7 676
旧巷少年郎
旧巷少年郎 2021-01-30 17:08

I\'m using Python 2.6 and Jinja2 to create HTML reports. I provide the template with many results and the template loops through them and creates HTML tables

When callin

7条回答
  •  萌比男神i
    2021-01-30 17:35

    Or you may do

    export LANG='en_US.UTF-8'
    

    in your console where you run the script.

提交回复
热议问题