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

Νίκος Gr33k nikos at superhost.gr
Fri Jul 5 13:16:20 CEST 2013


Στις 5/7/2013 2:05 μμ, ο/η Νίκος Gr33k έγραψε:
> Thats what i'm trying to do.
> If i completely remove the gethostbyaddr fucntion adds function then
> there is nor problem.
>
> The problem is recreating when the script tries to decode a hostname.
>
> For some bizarre reason if i exclude my domain from CloudFlare then the
> reverse DNS resolution of the visitors hostname would be returned properly.
>
> I will do it right now for you to see.


Precisely as i have said it would happen:

I removed the domain form CloudFlare and your domains visting my website 
appearing as usual.

Its only when i cloudflare it and the UnicodeError happens.

But why?!?! I see no reason as to why when my domain becomes Cloudflared 
the gethostbyaddr() fails.

What kind of weird strings does it return back?


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



More information about the Python-list mailing list