Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #2235
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Sudden error: SyntaxError: Non-ASCII character '\xc2' in file |
| Followup-To | comp.lang.python |
| Date | 2011-03-30 17:28 +0200 |
| Organization | None |
| Message-ID | <imvi69$d45$01$1@news.t-online.com> (permalink) |
| References | <f87a430c-2385-4731-9dfb-ecdfb07af0e5@i35g2000prd.googlegroups.com> |
Followups directed to: comp.lang.python
Gnarlodious wrote: > RSS script runs fine on my dev machine but errors on the server > machine. Script was last run 3 days ago with no problem. Possible > clue: dev machine is (Mac OSX) running Python 3.1.1 while server is > running Python 3.1.3. I have not updated anything that should suddenly > cause this error starting yesterday. > > The error originates at 'ยท' which string contains a · > character. > > Complete error message is: > > SyntaxError: Non-ASCII character '\xc2' in file /Library/WebServer/ > Sites/Sectrum/Site/Feed.py on line 17, but no encoding declared; see > http://www.python.org/peps/pep-0263.html for details > > Any help how to fix this and why it suddenly started erroring 2 days > ago... You are trying to run your 3.x code with Python 2.x...
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Sudden error: SyntaxError: Non-ASCII character '\xc2' in file Gnarlodious <gnarlodious@gmail.com> - 2011-03-30 07:34 -0700
Re: Sudden error: SyntaxError: Non-ASCII character '\xc2' in file Benjamin Kaplan <benjamin.kaplan@case.edu> - 2011-03-30 10:52 -0400
Re: Sudden error: SyntaxError: Non-ASCII character '\xc2' in file Peter Otten <__peter__@web.de> - 2011-03-30 17:30 +0200
Re: Sudden error: SyntaxError: Non-ASCII character '\xc2' in file Peter Otten <__peter__@web.de> - 2011-03-30 17:28 +0200
Re: Sudden error: SyntaxError: Non-ASCII character '\xc2' in file Gnarlodious <gnarlodious@gmail.com> - 2011-03-30 16:58 -0700
Re: Sudden error: SyntaxError: Non-ASCII character '\xc2' in file Terry Reedy <tjreedy@udel.edu> - 2011-03-30 22:36 -0400
csiph-web