Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.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.050 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.01; 'skip:\\ 20': 0.07; 'assuming': 0.09; 'skip:\\ 40': 0.09; 'confuse': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:issue': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'header :In-Reply-To:1': 0.27; 'host': 0.29; 'message-id:@mail.gmail.com': 0.30; "skip:' 10": 0.31; 'sep': 0.31; 'alone': 0.33; 'skip:b 30': 0.33; 'skip:u 20': 0.35; 'received:google.com': 0.35; 'being': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'solve': 0.60; "you're": 0.61; 'yourself': 0.78; 'happened.': 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; bh=YuVvt3yKmq/1lE+lo7JUqujZ4dbeSbttaBu0/yqPyMU=; b=LNIyrNezjK5TPjHHftsR+pig1d6agfDE+hg79btc/81n+PWbw2ZFsjmRU+yMRA19ji d93BI9DQkJ+azhSLqGWdRVK8oW+ANvyHuoLLhFO8dx4XN8y/lEKmp3FH4i8busISpIeZ deWP0bJrhnELDjDK8EBj3DHdkYNQ/u03q9yQXr3HNXyTh4cGRIBcwZ0WA5cG8HyVcQNL AYJIk7zEVcpGLBbxJF7lrmlTZunjsCh5RxwQtmt7gC+POfO0gmMYQ02Fn32VHMj3zESK 80A+CjHa9qk4GkZPwaZrKqU6sDAmDUdT8oyUVul0wBbgmy3C0O+WhuB+zkSAGOJjgwtY fl1g== MIME-Version: 1.0 X-Received: by 10.220.199.5 with SMTP id eq5mr16713521vcb.16.1378020501030; Sun, 01 Sep 2013 00:28:21 -0700 (PDT) In-Reply-To: References: Date: Sun, 1 Sep 2013 17:28:20 +1000 Subject: Re: UnicodeDecodeError issue From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1378020510 news.xs4all.nl 15929 [2001:888:2000:d::a6]:44570 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53403 On Sun, Sep 1, 2013 at 5:23 PM, Ferrous Cranus wrote: > Let alone that i when i try to set the 'host' variable i get this line at my > '/tmp/err.out' > > > nikos@superhost.gr [~]# cat /tmp/err.out > > UnicodeDecodeError('utf-8', b'\xb6\xe3\xed\xf9\xf3\xf4\xef > \xfc\xed\xef\xec\xe1 \xf3\xf5\xf3\xf4\xde\xec\xe1\xf4\xef\xf2', 0, 1, > 'invalid start byte') So host isn't being set because of this error, which you're blithely carrying on after and assuming that things have happened. Solve this problem, only then move on. Otherwise you WILL confuse yourself further. ChrisA