Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!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.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'that?': 0.05; 'cc:addr :python-list': 0.11; 'jan': 0.12; '"is': 0.16; '23,': 0.16; 'cp1252': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:unicode': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In- Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; '>>>>': 0.31; "skip:' 40": 0.31; 'there.': 0.32; 'implemented': 0.33; 'could': 0.34; 'received:google.com': 0.35; 'done': 0.36; 'question,': 0.38; 'handle': 0.38; 'pm,': 0.38; 'how': 0.40; 'more': 0.64; 'musical': 0.84; '"how': 0.91; '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:content-transfer-encoding; bh=Pod04hxZLHhxj6I2D7pdgk24jAqA5NSgq3oYRSxeVk4=; b=Uoc9rOgZqAtDzUhZt3bC/ya3krfPjRSVeHrNJFIchwNCLjU3X8NslMqVyQuS02I+Cp B/RAfuC32ULzDVmXLriCnPdGXX0nZ7IElgBlWnwBhRyk1Hd/cuQDkA7RY2SDPCbqWytR tk60+2++dxSK9MoL4fwFTIXuu9GsnVh+1y/jNDj2J7q0HvuQFT5wBz5A6MPwA31zSOMA X5RvRFu44QW6/m2ANCV7rd3T/nuzJoUN8CPMv1i+CHghT89samvg/U5r24hOC0ezajHI WJ/sIEguYBwxnW0mQDHKCzzh19YK7xHPQfR3ikh7qrPp4cD4FPeQCss185vQTGqU0LA6 cMOA== MIME-Version: 1.0 X-Received: by 10.68.133.6 with SMTP id oy6mr7208693pbb.153.1390474144622; Thu, 23 Jan 2014 02:49:04 -0800 (PST) In-Reply-To: <1e0aeb33-23b6-4af1-8447-38dc4473d09f@googlegroups.com> References: <59461353-d450-471f-ae28-84f686543a57@googlegroups.com> <1e0aeb33-23b6-4af1-8447-38dc4473d09f@googlegroups.com> Date: Thu, 23 Jan 2014 21:49:04 +1100 Subject: Re: awesome slugify and unicode From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1390474152 news.xs4all.nl 2966 [2001:888:2000:d::a6]:53774 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:64595 On Thu, Jan 23, 2014 at 9:41 PM, wrote: >>>> "Is =E2=99=AC =E2=99=AB =E2=99=AA =E2=99=A9 a melody or just noise?".e= ncode('ascii', 'replace').decode('ascii') > 'Is ? ? ? ? a melody or just noise?' >>>> >>>> > > cp1252 analogy. > >>>> 'abc=E2=82=AC=E2=82=AC=E2=82=AC'.encode('cp1252').decode('ascii', 'rep= lace').encode('ascii', 'replace').decode('ascii') > 'abc???' >>>> > > Again, not a "unicode" question, more "how to handle strings in a judicio= us way?" I don't want a cp1252 analogy, I want the exact same thing implemented in cp1252. You said the same work could be done there. That work includes dealing with musical notes. How are you going to do that? ChrisA