Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #64595

Re: awesome slugify and unicode

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 <rosuav@gmail.com>
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 <mailman.5850.1390418639.18130.python-list@python.org> <59461353-d450-471f-ae28-84f686543a57@googlegroups.com> <mailman.5878.1390468510.18130.python-list@python.org> <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 <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5882.1390474152.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Thu, Jan 23, 2014 at 9:41 PM,  <wxjmfauth@gmail.com> wrote:
>>>> "Is ♬ ♫ ♪ ♩ a melody or just noise?".encode('ascii', 'replace').decode('ascii')
> 'Is ? ? ? ? a melody or just noise?'
>>>>
>>>>
>
> cp1252 analogy.
>
>>>> 'abc€€€'.encode('cp1252').decode('ascii', 'replace').encode('ascii', 'replace').decode('ascii')
> 'abc???'
>>>>
>
> Again, not a "unicode" question, more "how to handle strings in a judicious 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

awesome slugify and unicode Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-22 19:23 +0000
  Re: awesome slugify and unicode wxjmfauth@gmail.com - 2014-01-22 23:18 -0800
    Re: awesome slugify and unicode Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-23 09:14 +0000
      Re: awesome slugify and unicode wxjmfauth@gmail.com - 2014-01-23 02:41 -0800
        Re: awesome slugify and unicode Chris Angelico <rosuav@gmail.com> - 2014-01-23 21:49 +1100
        Re: awesome slugify and unicode Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-23 13:18 +0000

csiph-web