Flask-error-框架訪問網頁報錯:UnicodeDecodeError:

報的錯誤:UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 17: ordinal not in range(128)

緣由:編碼問題

import sys
reload(sys)
sys.setdefaultencoding('utf8')

 

 

The end編碼

相關文章
相關標籤/搜索