Using python 3.5, as seen here: link. The image shows what keeps happening when I try to run ANY script that isn't executed inside PyCharm. If I run the exact same code inside PyCharm it works perfectly fine. Here is the code I ran in cmd:
python test.py
Error message:
File "test.py", line 86
SyntaxError: Non-UTF-8 code starting with '\xf8' in file test.py on line 86, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
I figured out that it was because I had some "Not English letters" (such as æ, ø, å). But the problem is the script shall search for a web element with the text "armbåndsure". It won't recognize the å -character, how do I fix this error? Here is my code:
emner = browser.find_element_by_link_text('Armbåndsure og lommeure')
The error code of that line :
File "test.py", line 96
SyntaxError: Non-UTF-8 code starting with '\xe5' in file test.py on line 96, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details