Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'charset:iso-8859-7': 0.04; "subject:' ": 0.07; 'subject:position': 0.09; 'colons': 0.16; 'doesnt': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject: \n ': 0.16; 'subject:start': 0.16; 'wrote:': 0.18; 'written': 0.21; 'header:In-Reply-To:1': 0.27; 'wonder': 0.29; 'message-id:@mail.gmail.com': 0.30; 'usually': 0.31; 'sep': 0.31; 'addresses': 0.33; 'received:google.com': 0.35; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'rather': 0.38; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'address.': 0.39; 'how': 0.40; 'easy': 0.60; 'entire': 0.61; 'address': 0.63; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=uetlMEck4vRqVfW94ijjxwlghdc7qjtwoaErcG/Ncvo=; b=VdL3UyUBv1ylo0xht0jZjVuTAoArK+2OrMPCWh7oUCb17J5/TaIseBCQJaqaf0PlQ8 tzrj91GIZbHCxw7sWrWrDU/THFmrdsW9CQFv3umWNBYr8kU0BkgMq82WlGOm5IsyU+Nr B8htktVV0+v2hv5i3MHpQdJnR7az0IlclSoJs+vzLu7EF6skQlyqaAabN0amPVP1LUmO 17xtx9AQOlWQjt6grUv1gqMpPqNaYVQSD6GH3l3QWHHXanQPAxjbsozlRLT8E8Mass9K u/eaSIW7Pgm+4cymvrdb+pHy27zZydTWVMQe5RWbpvFHp9RK5OD1P8M4BrZ2N08qIpFf Zw3w== MIME-Version: 1.0 X-Received: by 10.220.249.67 with SMTP id mj3mr191507vcb.23.1380443015435; Sun, 29 Sep 2013 01:23:35 -0700 (PDT) In-Reply-To: References: Date: Sun, 29 Sep 2013 18:23:35 +1000 Subject: Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1380443023 news.xs4all.nl 15943 [2001:888:2000:d::a6]:54263 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54993 On Sun, Sep 29, 2013 at 6:19 PM, =CD=DF=EA=EF=F2 wr= ote: > 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