Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #76606
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: Python 2.7 IDLE Win32 interactive, pasted characters i- wrong encoding |
| Date | 2014-08-19 17:44 -0400 |
| References | <CAPTjJmphj4N5u1ScyBP+AjCXqW_eQ_T-XJdoj=WbHUzwNHnjiA@mail.gmail.com> <lsv3ul$838$1@ger.gmane.org> <CAPTjJmpFXSknBGTvTy+QC90Z-6yBe8AOdF85cWgZttq=Hdo8Qg@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.13165.1408484734.18130.python-list@python.org> (permalink) |
On 8/19/2014 5:23 AM, Chris Angelico wrote: > On Tue, Aug 19, 2014 at 7:03 PM, Terry Reedy <tjreedy@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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python 2.7 IDLE Win32 interactive, pasted characters i- wrong encoding Terry Reedy <tjreedy@udel.edu> - 2014-08-19 17:44 -0400
csiph-web