Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'causing': 0.04; 'charset:iso-8859-7': 0.04; "subject:' ": 0.07; '[0]': 0.09; 'subject:position': 0.09; 'python': 0.11; "wouldn't": 0.14; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'how,': 0.16; 'subject: \n ': 0.16; 'subject:start': 0.16; 'wrote:': 0.18; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'host': 0.29; 'wonder': 0.29; 'is?': 0.30; 'statement': 0.30; 'message-id:@mail.gmail.com': 0.30; 'sep': 0.31; 'maybe': 0.34; 'something': 0.35; 'received:google.com': 0.35; 'error.': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'today': 0.64; 'different.': 0.84; '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=9I5+C0xU6p4POAGiq3YEIaDF7ddeS4KC4W21lqhlJss=; b=qySb48ydjFzvFEmOW2/MnuIcGjFYvsx1FZRWn9IaHXnx3KLdSxq/79RsVDig05t4FQ Duczj9QbguIcV5ZIq1E5nj4ufX+ocu+043KtkSOTMA8gpkM/I5yiuonyEn9rrOrA20ea +ClEw3jjbGXd4+/3WqCpCCePqkz748qdIXzKOPi82eqK1t5mQrYWB4Cnggizgglp1Kxd Bz9MgSfutijRnjS4KaxR5vq6PxXo+vdUZSucfTxBEgg0f46hHvBCPgfbGOw4jf7XWy00 r0K+VJmoXiGB9pE7lPdEzd9kuuz3/JrgIbY1wXpNoFiSgn3xiZQhqgL4GWbocpR/FDuH HY7Q== MIME-Version: 1.0 X-Received: by 10.220.105.199 with SMTP id u7mr15507828vco.1.1380442031323; Sun, 29 Sep 2013 01:07:11 -0700 (PDT) In-Reply-To: References: Date: Sun, 29 Sep 2013 18:07:11 +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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1380442039 news.xs4all.nl 16003 [2001:888:2000:d::a6]:48580 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54991 On Sun, Sep 29, 2013 at 6:04 PM, =CD=DF=EA=EF=F2 wr= ote: > How come all these daysthe followinf line work as expected: > > > host =3D 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