Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #65196
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: Python shell wont open idle or an exisiting py file |
| Date | 2014-02-01 00:44 -0500 |
| References | <24EAA33389A147D8BC08B029E2209E16@UserPC> <lcguq4$a3s$1@ger.gmane.org> <lchjk7$8og$1@ger.gmane.org> <CAPTjJmpc6+hSjTy9tn_AMNMVsdnfQh6E+GHx0a=SmJmJ5=5Uvw@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.6267.1391233481.18130.python-list@python.org> (permalink) |
On 1/31/2014 8:52 PM, Chris Angelico wrote: > On Sat, Feb 1, 2014 at 12:45 PM, Terry Reedy <tjreedy@udel.edu> wrote: >> H:\HP_Documents\0PythonWork\AirplaneKinematics\accel2.py >> caused this message >> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 14: >> invalid start byte > > So... something's interpreting \0 as codepoint U+0000 (which it > shouldn't), storing that in "UTF-8" as 0xC0 0x80 (which it shouldn't), > and then giving it to Python to decode. Right. Which is why it puzzled me. Credit Serhiy for unraveling this and fixing it. > That's a weird little combination bug right there. Which started with Microsoft's decision to reuse the string excape character '\' as a directory separator. -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python shell wont open idle or an exisiting py file Terry Reedy <tjreedy@udel.edu> - 2014-02-01 00:44 -0500
csiph-web