UTF-8 Encoding Error

Gonzalo V gvm2121 at gmail.com
Sun Dec 25 17:07:10 EST 2016


Try utf-8-sig
El 25 dic. 2016 2:57 AM, "Grady Martin" <sunnycemetery at gmail.com> escribió:

> 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
> --
> https://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list