I have an error when trying to open a python program in the cmd

0

I use sublime text as a text editor, but when I want to run a program that asks for data the user does not leave me and I think it is part of sublime; then following a facilitated code course I am learning to execute my programs with the Cmd; but when trying to open my file I get the following error:

SyntaxError: Non-ASCII character '\ xc3' in file ./numeromagic.py on line 2, but no encoding declared; see link for details

It should be noted that the file I have in a folder called exercises and is located on the desktop; then in the cmd what I write is: cd desktop & cd exercises & python numeromagico.py which is what my program is called.

    
asked by Yeison Estiven 15.06.2017 в 05:14
source

1 answer

0

I'm also starting but I know a little about this, I hope I can help you:

In Sublime in the File section there is a Save with Encoding option that displays a list of all the types of encodings, it is most likely that you are utf-8, select it and return to Run to see what happens.

Like you can give alt + Enter + seven times down + Enter + Enter

:)

    
answered by 15.06.2017 в 05:26