UTF-8 Encoding Error

Grady Martin sunnycemetery at gmail.com
Sun Dec 25 00:50:16 EST 2016


On 2016年12月22日 22時38分, subhabangalore at gmail.com wrote:
>I am getting the error:
>UnicodeDecodeError: 'utf8' codec can't decode byte 0x96 in position 15: invalid start byte

The following is a reflex of mine, whenever I encounter Python 2 Unicode errors:

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

A relevant Stack Exchange thread awaits you here:

http://stackoverflow.com/a/21190382/2230956


More information about the Python-list mailing list