Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'charset:iso-8859-7': 0.04; 'encoded': 0.07; "subject:' ": 0.07; 'utf-8': 0.07; 'subject:position': 0.09; 'url:unicode': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject: \n ': 0.16; 'subject:start': 0.16; 'too?': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'bytes': 0.24; 'header:In-Reply-To:1': 0.27; 'character': 0.29; 'message-id:@mail.gmail.com': 0.30; 'received:google.com': 0.35; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'jul': 0.74; '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=rc+6ekqtTfhUX4eDJXMn8rClCq7DpFnjTlgpZ90fm+k=; b=l2rkKftXMDqgmOESeOoQFWzQLUcdnnTk9m1TCrMEz1YoQ+iqgM24tlt2V5n5OSnRHF mTJk4saXF8D/9EEbGgBA0K/mSW+bY/eYcyJVzSNAh0fma38bmUms/Nxs1geiX48RFR3B /VvqwYdnobQzDd13wRSkRepfBDdYrTU+2CX4AWJYSx7gH+MYTtk+8wZ4wrsfgMtTJW5z dxbprmjwZVon+k7DpAF9srJuQQo8bwSw8RLAV5/YQ9e7Kt2+2tTvbkEb/VojigsVEUww m3kdEndMRu7S/AZIWwSIUP2mYPZJzAIrVH749i98EKhEolTXyQ1iCd//vpwL/Hf6xubv GFMA== MIME-Version: 1.0 X-Received: by 10.66.197.165 with SMTP id iv5mr6582426pac.67.1372935270137; Thu, 04 Jul 2013 03:54:30 -0700 (PDT) In-Reply-To: References: Date: Thu, 4 Jul 2013 20:54:30 +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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372935585 news.xs4all.nl 15950 [2001:888:2000:d::a6]:60287 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49839 On Thu, Jul 4, 2013 at 8:38 PM, =CD=DF=EA=EF=F2 wrote: > So you are also suggesting that what gesthostbyaddr() returns is not utf-= 8 > encoded too? > > What character is 0xb6 anyways? It isn't. It's a byte. Bytes are not characters. http://www.joelonsoftware.com/articles/Unicode.html ChrisA