On Mar 15, 2010, at 1:37 PM, Joel Pendery wrote:

So I am trying to write a bit of code and a simple numerical
subtraction

y_diff = y_diff-H

is giving me the error

Syntaxerror: Non-ASCII character '\x96' in file on line 70, but no
encoding declared.

Even though I have deleted some lines before it and this line is no
longer line 70, I am still getting the error every time.  I have tried
to change the encoding of the file to utf-8 but to no avail, I still
am having this issue.  Any ideas?


0x96 is the Win1252 minus sign character. Did you copy & paste this code from a Web browser or a word processor?

Delete the character between "y_diff" and "H" and replace it with a plain ASCII subtraction sign.





--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to