S
SaMTHG
Basically I have Mac OS X 10.4.11 and I've got python 2.5.
When I go to TextEdit and type in something like
#!/usr/bin/env python
print 2+2
and save it as simplescript.py.
Then I go to terminal and cd my way to the dir that the script source
is in and type:
python simplescript.py
And the output is:
File "simplescript.py", line 1
SyntaxError: Non-ASCII character '\xfe' in file simplescript.py on
line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html
for details
What does this mean? And how do I make it work again?
Thanks for reading
SaMTHG
When I go to TextEdit and type in something like
#!/usr/bin/env python
print 2+2
and save it as simplescript.py.
Then I go to terminal and cd my way to the dir that the script source
is in and type:
python simplescript.py
And the output is:
File "simplescript.py", line 1
SyntaxError: Non-ASCII character '\xfe' in file simplescript.py on
line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html
for details
What does this mean? And how do I make it work again?
Thanks for reading
SaMTHG