Saturday 10 August 2013

Python printing special Characters

Python printing special Characters

In Python how would I print special characters such as ¡î, ¡Ä, ©÷,©ø, ¡Â,
¡Ã, ¡¾, ¡Á
When I try printing them to the console I the get this error:
print("¡î")
SyntaxError: Non-ASCII character '\xe2' in file
/Users/williamfiset/Desktop/MathAid - Python/test.py on line 4, but no
encoding declared; see http://www.python.org/peps/pep-0263.html for
details
How do I get around this?

No comments:

Post a Comment