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

Terry Reedy tjreedy at udel.edu
Tue Aug 19 17:44:44 EDT 2014


On 8/19/2014 5:23 AM, Chris Angelico wrote:
> On Tue, Aug 19, 2014 at 7:03 PM, Terry Reedy <tjreedy at udel.edu> 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'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"


-- 
Terry Jan Reedy





More information about the Python-list mailing list