Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '%s"': 0.09; 'encode': 0.09; 'received:internal': 0.09; 'subject:2.7': 0.09; 'codec': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'n\xc3\xb6tig': 0.16; 'ordinal': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:messagingengine.com': 0.16; 'subject:unicode': 0.16; 'surprising': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'thu,': 0.19; '>>>': 0.22; 'byte': 0.24; 'string,': 0.24; 'header:In-Reply-To:1': 0.27; '"",': 0.31; 'file': 0.32; '(most': 0.33; 'subject:time': 0.33; 'received:66': 0.35; 'subject: (': 0.35; "can't": 0.35; 'subject:one': 0.36; 'received:10': 0.37; 'nov': 0.38; 'to:addr :python-list': 0.38; 'rather': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; 'from:no real name:2**0': 0.61; 'header:Message-Id:1': 0.63; 'subject:more': 0.64; '20,': 0.68; '2014,': 0.84; 'otten': 0.84 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:x-sasl-enc:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=mesmtp; bh=tSmyPkqNTtGGenp4LuMioxNfmlM=; b=RcWi CEXrBk1aduvR3xkktgUwdt9rVzTvurVmc8g+r8/zD4xpHOW8Ur5SziLdWHwrSzwo QgzxImP5+mfkiLW/Xzb4rUNaRtwYbzDz+Iv2JsxlNkX7gOKPehDjTOBlpTwpv3rS caF+SrCDFCeX5jkqSdunRyGlGWqwImA7VYnOYiI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:x-sasl-enc:from:to :mime-version:content-transfer-encoding:content-type:in-reply-to :references:subject:date; s=smtpout; bh=tSmyPkqNTtGGenp4LuMioxNf mlM=; b=G8kuXlG1/Tr5tuCgAtHRsmn4RWST4KXwQAshjUFBKL9aWPwhCuAd2iul BIOGqx6fVeWXvnQd0MK2Y28i43lYc1ibXDMu3CF/qSZmL/j12rA8nVTmpLv8+9dU BUylT4BbPO5mkd7kAPtMQEJEuBe9Vb4RqmXyEh73T+8hcyeli9M= X-Sasl-Enc: mHJP1oOvYHU6tl8SnovfLZfGSzNKCo4fRN27fVIlhsbR 1416491999 From: random832@fastmail.us To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-a419c8a0 In-Reply-To: References: Subject: Re: python 2.7 and unicode (one more time) Date: Thu, 20 Nov 2014 08:59:59 -0500 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416492002 news.xs4all.nl 2898 [2001:888:2000:d::a6]:49829 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81075 On Thu, Nov 20, 2014, at 07:35, Peter Otten wrote: > >>> "%s n=C3=B6tig %s" % (u"=C3=BCblich", u"=C3=A4hnlich") > Traceback (most recent call last): > File "", line 1, in > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4:=20 > ordinal not in range(128) This is surprising to me - why is it trying to decode the format string, rather than encode the arguments?