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

Chris Angelico rosuav at gmail.com
Thu Jul 4 06:54:30 EDT 2013


On Thu, Jul 4, 2013 at 8:38 PM, Νίκος <nikos at superhost.gr> wrote:
> So you are also suggesting that what gesthostbyaddr() returns is not utf-8
> encoded too?
>
> What character is 0xb6 anyways?

It isn't. It's a byte. Bytes are not characters.

http://www.joelonsoftware.com/articles/Unicode.html

ChrisA



More information about the Python-list mailing list