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

Chris Angelico rosuav at gmail.com
Sun Sep 29 04:07:11 EDT 2013


On Sun, Sep 29, 2013 at 6:04 PM, Νίκος <nikos.gr33k at gmail.com> wrote:
> How come all these daysthe followinf line work as expected:
>
>
> host = socket.gethostbyaddr( ipval ) [0]
>
> and only just today just happened to output:

Maybe the ipval is different. Maybe something else is causing the
error. I wonder how, in Python, you would find out which one it is?
Wouldn't it be nice if Python had a function - statement in Python 2 -
that told you what something was.

ChrisA



More information about the Python-list mailing list