Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2a.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.041 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; '21,': 0.07; 'method.': 0.07; 'string': 0.09; 'subject:2.7': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:unicode': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'unicode': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'fri,': 0.33; 'subject:time': 0.33; 'problem': 0.35; 'subject: (': 0.35; 'skip:u 20': 0.35; 'received:google.com': 0.35; 'subject:one': 0.36; 'nov': 0.38; 'does': 0.39; 'even': 0.60; 'is.': 0.60; 'simply': 0.61; 'subject:more': 0.64; 'more': 0.64; 'hang': 0.67; 'fortunately': 0.84; 'otten': 0.84; 'to:none': 0.92 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:cc :content-type; bh=aaN9Buz/T32uYW1c0bwrQf2L9m/2ypvJX15SC03AfLc=; b=cuH/UJA3VmvfStSwRR5J8flTvfhsfvAFPt1vyM9nf6phYxi1zUOiwUgK2jjJoMc2HL I2yZ15s9sd7QA3O/L+fAWZiyoLXQaNHZTu4tGyoGrAjsv0HaO/enIgcKp4r48dIWVWYT OItvGF/0GoC6L72xUpoZMxC9OtiMWefCSkVW+6Kq8qCN0EWqeWNz2fLo9bzmG6bo4xsA IbgV9UwPWLGcqaX2nNZsRTuUrEChVbo5oc7N/rfwO01MPt8LDEqrESUF9agxuftNVzNj coxBXrQZLfAosat6TD9LFTuvY/jbgfaSvR4S24WEJ7R3banZDEAaEwHCmsDKhy75eJGp +cSA== MIME-Version: 1.0 X-Received: by 10.50.136.134 with SMTP id qa6mr3544329igb.2.1416498812518; Thu, 20 Nov 2014 07:53:32 -0800 (PST) In-Reply-To: References: <1416491999.209592.193345213.3A6FF9A4@webmail.messagingengine.com> Date: Fri, 21 Nov 2014 02:53:32 +1100 Subject: Re: python 2.7 and unicode (one more time) From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416498816 news.xs4all.nl 2975 [2001:888:2000:d::a6]:51756 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81084 On Fri, Nov 21, 2014 at 2:40 AM, Peter Otten <__peter__@web.de> wrote: > I think that you may get a Unicode/Encode/Error when you try to /decode/ a > unicode string is more confusing... Hang on a minute, what does it even mean to decode a Unicode string? That's where the problem is. Fortunately that's one that Py3 solved - str simply doesn't have a decode() method. ChrisA