UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

Ulrich Eckhardt ulrich.eckhardt at dominolaser.com
Thu Jul 4 05:50:15 EDT 2013


Am 04.07.2013 10:37, schrieb Νίκος:
> I just started to have this error without changing nothing

Well, undo the nothing that you didn't change. ;)

> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0:
> invalid start byte
> [Thu Jul 04 11:35:14 2013] [error] [client 108.162.229.97] Premature end
> of script headers: metrites.py
>
> Why cant it decode the starting byte? what starting byte is that?

It's the 0xb6 but it's expecting the starting byte of a UTF-8 sequence. 
Please do some research on UTF-8, that should clear it up. You could 
also search for common causes of that error.

Uli





More information about the Python-list mailing list