Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.06; 'subject:file': 0.07; 'cc:addr:python-list': 0.11; 'python': 0.11; 'bug': 0.12; 'codec': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'reedy': 0.16; 'storing': 0.16; 'sat,': 0.16; 'weird': 0.16; 'wrote:': 0.18; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'byte': 0.24; 'cc:2**0': 0.24; 'header :In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; '(which': 0.31; 'there.': 0.32; "can't": 0.35; 'received:google.com': 0.35; 'combination': 0.36; 'pm,': 0.38; 'little': 0.38; 'skip:u 10': 0.60; 'invalid': 0.68; 'caused': 0.69; '14:': 0.84; 'so...': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=tBYjU6UpCpouQ9NmsYXPVNcXCHgCLMMffakRAn9zGdY=; b=f2Qhrl2kpd0EL9brxDLij9h+LsWw+JswCAbL9g8PEc34pY8gvnqoW0KVc9F8Faralp sAhYcP4bvrvxgv7QMh3fY2pbkn504zgPIpLFFkXa+o7gfL9xVzdcn5stwX3eWCZ5I59J 8WVf64QJEFmSeAIfs2pCiubLF2ua/NOTRPggot1FqDRsrZOoNg9XOKibv6trhhuK+Jua YXOI6TVGS8iZe6dSfH0azP5pPv+oEetnLrRA22kXCxThtSXk/j8FJWtbNn5W/4ssmaqs 0TEJW4WY9e5mkLpHivqPWtVt7rntfrlCS2iqBqBVHN2IJArcDzBmw99l3gC+zHrVIM5V tvXg== MIME-Version: 1.0 X-Received: by 10.66.102.39 with SMTP id fl7mr23803623pab.43.1391219559447; Fri, 31 Jan 2014 17:52:39 -0800 (PST) In-Reply-To: References: <24EAA33389A147D8BC08B029E2209E16@UserPC> Date: Sat, 1 Feb 2014 12:52:39 +1100 Subject: Re: Python shell wont open idle or an exisiting py file From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391219568 news.xs4all.nl 2863 [2001:888:2000:d::a6]:55357 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65161 On Sat, Feb 1, 2014 at 12:45 PM, Terry Reedy 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