Re: Python 2.7 IDLE Win32 interactive, pasted characters i- wrong encoding

2014-08-19 Thread Chris Angelico
On Wed, Aug 20, 2014 at 7:44 AM, Terry Reedy wrote: > 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" Ah! You had me highly con

Re: Python 2.7 IDLE Win32 interactive, pasted characters i- wrong encoding

2014-08-19 Thread Terry Reedy
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 € 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 € is 0x80 in CP-1252 How

Re: Python 2.7 IDLE Win32 interactive, pasted characters i- wrong encoding

2014-08-19 Thread Chris Angelico
On Tue, Aug 19, 2014 at 7:03 PM, Terry Reedy wrote: > On 8/18/2014 7:44 PM, Chris Angelico wrote: >> Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit >> (Intel)] on win32 >> Type "copyright", "credits" or "license()" for more information. > > # -*- coding: utf-8 -*- > > > I

Re: Python 2.7 IDLE Win32 interactive, pasted characters i- wrong encoding

2014-08-19 Thread Terry Reedy
On 8/18/2014 7:44 PM, Chris Angelico wrote: Python 3 works fine, at least for BMP characters: Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:24:06) [MSC v.1600 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. u"U+20AC is € is 0x80 in CP-1252" 'U+20A

Python 2.7 IDLE Win32 interactive, pasted characters i- wrong encoding

2014-08-18 Thread Chris Angelico
Python 3 works fine, at least for BMP characters: Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:24:06) [MSC v.1600 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> u"U+20AC is € is 0x80 in CP-1252" 'U+20AC is € is 0x80 in CP-1252' >>> ascii(_) "'U+