Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #65161

Re: Python shell wont open idle or an exisiting py file

References <24EAA33389A147D8BC08B029E2209E16@UserPC> <lcguq4$a3s$1@ger.gmane.org> <lchjk7$8og$1@ger.gmane.org>
Date 2014-02-01 12:52 +1100
Subject Re: Python shell wont open idle or an exisiting py file
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.6240.1391219568.18130.python-list@python.org> (permalink)

Show all headers | View raw


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. That's a weird little
combination bug right there.

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python shell wont open idle or an exisiting py file Chris Angelico <rosuav@gmail.com> - 2014-02-01 12:52 +1100

csiph-web