UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Sun Sep 29 05:45:32 EDT 2013
On Sun, 29 Sep 2013 11:37:14 +0300, Νίκος wrote:
> Στις 29/9/2013 11:30 πμ, ο/η Νίκος έγραψε:
>> Στις 29/9/2013 11:23 πμ, ο/η Chris Angelico έγραψε:
>>> On Sun, Sep 29, 2013 at 6:19 PM, Νίκος <nikos.gr33k at gmail.com> wrote:
>>>> ipval is suposed to get just an ip address. ip addresses doesnt
>>>> change its just number seperated by dots.
>>>
>>> That's one way an IP address can be rendered. It's not the only one.
>>> There's an entire category of IP addresses that's usually written with
>>> colons rather than dots. However, I reiterate: How do you KNOW what's
>>> in ipval? I wonder if there's an easy way for you to find out...
>>>
>>> ChrisA
>>>
>> yes it is, i take it you mean to just print the damn varibale to see
>> what on eath is actually outputs back....
>
>
> Here, as exactly as i though of it:
>
> print( ipval ) returned 46.198.177.249
............................^^^^^^^^^^^^^^
But the error comes from:
> [Sun Sep 29 07:44:43 2013] [error] [client 173.245.49.126]
.............................................^^^^^^^^^^^^^^
Given that the error occurred hours ago, I don't think you'll be able to
diagnose why it happened unless it happens again.
Another thought comes to mind... unless you have changed your habits, I
recall that you edit the source code live. If that is the case, it is
possible that the error actually occurred in a completely unrelated line,
if you happened to be editing the file at the moment the error occurred.
--
Steven
More information about the Python-list
mailing list