Path: csiph.com!usenet.pasdenom.info!news.etla.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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'charset:iso-8859-7': 0.04; 'subject:Python': 0.06; 'failing': 0.07; 'alter': 0.09; 'anymore.': 0.09; 'line:': 0.09; 'python': 0.11; 'sorts': 0.16; 'subject:Unicode': 0.16; 'subject:issue': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'seems': 0.21; 'issue.': 0.22; 'this?': 0.23; 'error': 0.23; 'unicode': 0.24; 'question': 0.24; 'header:In- Reply-To:1': 0.27; 'tried': 0.27; 'host': 0.29; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'anyone': 0.31; 'subject:with': 0.35; 'received:209.85': 0.35; 'except': 0.35; 'but': 0.35; 'received:google.com': 0.35; '2.6': 0.36; 'received:209': 0.37; 'skip:o 20': 0.38; 'problems': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'even': 0.60; 'solve': 0.60; 'production': 0.68; 'obvious': 0.74; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=/ABdfbm/X4pqo3Zk8911t5gGLjmLe/Xnv+SBJ9nTFUY=; b=oeDvQnPvi5CgnqfDf+fWJLczDwYmS0jr6dSUw1BVAEiJSVGOkxngIYply8xhZA+oeT Jzq4emud1oloO3tzw3Y9JLhvjyBXwtCi8ngCzACrWtr1JyL5HYHKQScatcF3DJ3GgO8k Eh75CXvujWMz1y+57ODqSRF/dRuwkZN7TOTESwIaPXv5r3OpX5TgZB+39T/gu6JwSKNR LKkyh+Bycn51hZc2gOcwZCT006vqt/8TTuZGWdW0GO2e59mGsPIYu60Fj9OnnkhurhaI oamZ7I6jeG+A1sCu6j8otM9dsVjc4Q4CETDxEGZXLvUUHiTjGbZV8w/9T+gVdDncdYbF zOsQ== X-Received: by 10.66.164.6 with SMTP id ym6mr46710451pab.92.1365543306091; Tue, 09 Apr 2013 14:35:06 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Ian Kelly Date: Tue, 9 Apr 2013 15:34:25 -0600 Subject: Re: Unicode issue with Python v3.3 To: Python 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365543310 news.xs4all.nl 2686 [2001:888:2000:d::a6]:58295 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43231 On Tue, Apr 9, 2013 at 3:10 PM, =CD=DF=EA=EF=F2 =C3=EA=F133=EA wrote: > Hello, iam still trying to alter the code form python 2.6 =3D> 3.3 > > Everyrging its setup except that unicode error that you can see if you go= to http://superhost.gr > > Can anyone help with this? > I even tried to change print() with sys.stdout.buffer() but still i get t= he same unicode issue. > > I don't know what to try anymore. It seems to be failing on the line: host =3D socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] So the obvious question to ask is: what are the contents of os.environ['REMOTE_ADDR'] when this line is reached? And why are you still trying to solve these sorts of problems on your production website? Do you not have a development or staging environment?