win7下偵錯scrapy程式碼時,出現程式碼報錯,但未輸出到log日誌,而是在cmd中報以下錯誤:
Traceback (most recent call last):
File "d:python27liblogging__init__.py", 8844 , in emit
stream.write(fs % msg.encode("UTF-8"))
UnicodeDecodeError: 'gbk' codec can't decode bytes in position 1274-1275: illegalquby ancode bytes line 158
pip install --upgrade logging