UnicodeDecodeError : 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

前端 未结 5 1455
醉梦人生
醉梦人生 2020-11-29 20:20

On one of my machines I have the error when I am working with google apps engine or django.

For example:

  • app.yaml

    application: demas         
    
    
            
5条回答
  •  佛祖请我去吃肉
    2020-11-29 20:59

    An alternative solution from python issue9291 by Alexandr Zarubkin (me21):

    add file named sitecustomize.py in Lib\site-packages folder.

    import sys
    sys.setdefaultencoding("cp1251")
    

提交回复
热议问题