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


Groups > comp.lang.python > #81084

Re: python 2.7 and unicode (one more time)

References <m4kcu8$ta8$1@ger.gmane.org> <m4kn66$ma3$1@ger.gmane.org> <1416491999.209592.193345213.3A6FF9A4@webmail.messagingengine.com> <m4l20h$toc$1@ger.gmane.org>
Date 2014-11-21 02:53 +1100
Subject Re: python 2.7 and unicode (one more time)
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.16026.1416498816.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

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


Thread

Re: python 2.7 and unicode (one more time) Chris Angelico <rosuav@gmail.com> - 2014-11-21 02:53 +1100

csiph-web