SyntaxError: Non-ASCII character ‘\xa3’ in file when function returns ‘£’
Say I have a function: def NewFunction(): return ‘£’ I want to print some stuff with a pound sign in front of it and it prints an error when I try to run this program, this error message is displayed: SyntaxError: Non-ASCII character ‘\xa3’ in file ‘blah’ but no encoding declared; see http://www.python.org/peps/pep-0263.html for details … Read more