Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1a.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '21,': 0.07; 'encoded': 0.07; 'method.': 0.07; 'string': 0.09; 'bytes.': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'subject:2.7': 0.09; '~ethan~': 0.09; 'base64': 0.16; 'filename:fname piece:signature': 0.16; 'subject:unicode': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'unicode': 0.24; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; "doesn't": 0.30; 'fri,': 0.33; 'subject:time': 0.33; 'could': 0.34; 'problem': 0.35; 'subject: (': 0.35; 'skip:u 20': 0.35; 'subject:one': 0.36; 'charset:us-ascii': 0.36; 'nov': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; 'is.': 0.60; 'received:173': 0.61; 'simply': 0.61; 'subject:more': 0.64; 'more': 0.64; 'hang': 0.67; 'fortunately': 0.84; 'otten': 0.84 Date: Thu, 20 Nov 2014 13:29:49 -0800 From: Ethan Furman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: python 2.7 and unicode (one more time) References: <1416491999.209592.193345213.3A6FF9A4@webmail.messagingengine.com> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xpCTMUeiOW5j5DlLgOEtVpJrRCqVlQMdQ" 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: 46 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416518997 news.xs4all.nl 2898 [2001:888:2000:d::a6]:51453 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81128 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --xpCTMUeiOW5j5DlLgOEtVpJrRCqVlQMdQ Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable On 11/20/2014 07:53 AM, Chris Angelico wrote: > 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 /decod= e/ a >> unicode string is more confusing... >=20 > 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. If your unicode string happens to contain a base64 encoded .png, then you= could decode that into bytes. ;) -- ~Ethan~ --xpCTMUeiOW5j5DlLgOEtVpJrRCqVlQMdQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJUbl1QAAoJENZ7D1rrH75NgL0QAMoyKt97OOgktjjN99lwKfYe ckkOPL+zxUpyeEhWHhGITtVh0a4KDVf9IuG1xH2R04Rwg8eG5iamlBPcWg3b6Oao 3dyOvSBnK+FP6+dB2ATF5Yi4yXq7lxqpI845KsubNtX+I7fRQAp8cW1JyHj9RX06 bU/E8tYiZgE3l5NSX9qvDmK3nT3LU/VuUb2lcSN+4tmrVt3i4+f+7yzxuWniL4sI sGQSswInypR38hsfgq3NOrcv+c/9xf8vk83mp81jYpbl7/7AgCgI2NRVMNVyMGwJ pQ2B+dOIj4PiJF49naslBeDbAh6UILwkKt6U1Bi0OghjPAn1UE5opfEE8MoA6CbS datseQ378CgeGF3gFo60nDbwv3Jt5UCHfqn0ehRyorxRFRX1JD5QFaXzA97XTleS gt9xz/pXO2gl6CGWqv6B2iOK2PXHTW63pWoVZ9f9ZPVbUMckTUNIarQg4/k3XOVz rn5/28VW2En5gNzdCsF4/xDpd65YTVIx6qCBC9m1kkUHoMr45ckFq+53BkWDJQtO VRkyhnZtfz0Xklqf6u53qfnOtRscl5I70hT0WLoEr9S+Tm8Igz0VNixIS2tprgWj VSYPLTIRIEqsZSaHABvcZMpBNlEwJSay3wceYjOlKNxBJ1xxlt2LAAdvGRls69Yo oQ5+DyeB3k/rR6PFFGrM =CdnF -----END PGP SIGNATURE----- --xpCTMUeiOW5j5DlLgOEtVpJrRCqVlQMdQ--