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


Groups > comp.lang.python > #81075

Re: python 2.7 and unicode (one more time)

From random832@fastmail.us
References <m4kcu8$ta8$1@ger.gmane.org> <m4kn66$ma3$1@ger.gmane.org>
Subject Re: python 2.7 and unicode (one more time)
Date 2014-11-20 08:59 -0500
Newsgroups comp.lang.python
Message-ID <mailman.16018.1416492002.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Nov 20, 2014, at 07:35, Peter Otten wrote:
> >>> "%s nötig %s" % (u"üblich", u"ähnlich")
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4: 
> ordinal not in range(128)

This is surprising to me - why is it trying to decode the format string,
rather than encode the arguments?

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


Thread

Re: python 2.7 and unicode (one more time) random832@fastmail.us - 2014-11-20 08:59 -0500

csiph-web