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


Groups > comp.lang.python > #64595

Re: awesome slugify and unicode

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 2014-01-23 21:49 +1100
Subject Re: awesome slugify and unicode
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.5882.1390474152.18130.python-list@python.org> (permalink)

Show all headers | 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