2016年7月9日 星期六

[python3.x] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position

Can't fix by root cause, but I try another way, reedit the file you hit.

1. open that file in vim, and you can see the  <0x92> in the file, remove and save. Done.
2. simply open file in sublime text 3 or TextEdit something, find some strange mark. remove it. Done.

ps. if you wondering what is the encoding of your file, go to sublime , show console and
     type-> view.encoding()

沒有留言:

張貼留言