Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.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.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'charset:iso-8859-7': 0.04; "subject:' ": 0.07; 'subject:position': 0.09; 'url:unicode': 0.09; 'codec': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject: \n ': 0.16; 'subject:start': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'saying': 0.22; 'byte': 0.24; 'bytes': 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'sep': 0.31; 'there.': 0.32; 'another': 0.32; "can't": 0.35; 'received:google.com': 0.35; "he's": 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; 'read': 0.60; 're:': 0.63; 'invalid': 0.68; '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=b3KzMFnsfc97Zz9OiRa+qGt51C7qR1BGHlG3k5IRE28=; b=GrHd1ThB1SWaYypA2aDDaCndt3jgv2FdwGzh42rpzrF1KodrXAUWUCH3ZPZ/uDlB3C 3BPhpq4Ws7vVvmWe0jDcK+cK42WPsaSdBRK4d/r2aprnNoJiYHyCIorsOb3RDsXDvp1f +Chvubs2yHxoes+QRo4KRyOFnI0/9VxAbep5P/KEPFWRIDZwF9WPd2ZsoXq4L7fNdkv6 zMUroaIgPo2mdQgAfWjAgHVOyGKOAZkfT8HXwRDWYURz9vXojsZbcGBhT5BkgiLqRHon /lXpShMeESE0ZJuDxoANHCYUNt13ZH2JH3WEXuVSeTiD7TQx9B1sqgxwIv5FCq2GbEBH FlWQ== MIME-Version: 1.0 X-Received: by 10.58.153.161 with SMTP id vh1mr28795veb.29.1380441616454; Sun, 29 Sep 2013 01:00:16 -0700 (PDT) In-Reply-To: References: Date: Sun, 29 Sep 2013 18:00:16 +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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1380441619 news.xs4all.nl 15976 [2001:888:2000:d::a6]:40575 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54989 On Sun, Sep 29, 2013 at 5:53 PM, =CD=DF=EA=EF=F2 wr= ote: > Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position = 0: > invalid start byte Something's trying to decode a stream of bytes as UTF-8, and it's not UTF-8. Work out what in your code is bytes and what is strings, and do your own conversions. http://www.joelonsoftware.com/articles/Unicode.html READ IT. Do not write another line of code until you actually understand what he's saying there. ChrisA