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

Νίκος Γκρ33κ nikos at superhost.gr
Thu Jul 4 09:26:30 EDT 2013


Στις 4/7/2013 4:07 μμ, ο/η Ulrich Eckhardt έγραψε:
> Am 04.07.2013 12:38, schrieb Νίκος:
>> Στις 4/7/2013 12:50 μμ, ο/η Ulrich Eckhardt έγραψε:
>>> Am 04.07.2013 10:37, schrieb Νίκος:
>>>> 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.
>>
>> So you are also suggesting that what gesthostbyaddr() returns is not
>> utf-8 encoded too?
>
> I never said that. And do some research yourself, you were given plenty
> of hints.
>
> Uli
>
Yes and as you can see form my responses i have tried any suggestion so 
far and the problem still remains unresolved.

What you said implied that the string returned by the function cannot be 
decoded as utf-8.

-- 
What is now proved was at first only imagined!



More information about the Python-list mailing list