Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:IDLE': 0.04; 'interpreter': 0.05; 'output': 0.05; 'say,': 0.05; 'subject:Python': 0.06; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:2.7': 0.09; 'subject:characters': 0.09; 'jan': 0.12; 'correct)': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject: \n ': 0.16; 'win7': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'aug': 0.22; 'header:User-Agent:1': 0.23; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; '(which': 0.31; 'gives': 0.31; 'subject:- ': 0.31; 'actual': 0.34; 'wrong': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'received:71': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'euro': 0.69; "how's": 0.74; 'received:fios.verizon.net': 0.84; 'shows,': 0.84; '\xe2\x82\xac': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Python 2.7 IDLE Win32 interactive, pasted characters i- wrong encoding Date: Tue, 19 Aug 2014 17:44:44 -0400 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Gmane-NNTP-Posting-Host: pool-71-175-90-87.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1408484734 news.xs4all.nl 2923 [2001:888:2000:d::a6]:35665 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76606 On 8/19/2014 5:23 AM, Chris Angelico wrote: > On Tue, Aug 19, 2014 at 7:03 PM, Terry Reedy wrote: >> On 8/18/2014 7:44 PM, Chris Angelico wrote: >>>>>> u"U+20AC is =E2=82=AC is 0x80 in CP-1252" >>> >>> u'U+20AC is \x80 is 0x80 in CP-1252' >> >> >> Better than what I get on my 3.4.1 Win7 >> >> U+20AC is =E2=82=AC is 0x80 in CP-1252 > How's \x80 better than an actual euro sign? (As ascii() shows, it's > coming through as \u20ac, which is correct.) Whoops, I pasted the wrong (which is to say, correct) output. The right (worse incorrect) interactive output is U+20AC is is 0x80 in CP-1252 The console interpreter gives me u"U+20AC is ? is 0x80 in CP-1252" --=20 Terry Jan Reedy