python - error when using tkinter + sqlite3 -


I'm trying to use sqlite3 in a guinea here, and when I'm using geo Try to compile the code, return this error

  file "/home/armando/Documents/curso/python_projects/sqlite3.py", line 3 syntax error: non-ASCII Python_projects / sqlite3.py on character '\ xc3' file / home / armando / document 3 / line / 3, but no encoding is declared;   

How can I solve it?

Thanks P> Light and Peace!

see p. 263 -

You must declare your source at the top of the module Your encoding:

  #! / Usr / bin / python # - * - coding: utf-8 - * -   

Replace UTF-8 with the encoding that you saved the file.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -