PEP 263 defines how to declare Python source code encoding.
Normally, the first 2 lines of a Python file should start with:
#!/usr/bin/python # -*- c
Just copy paste below statement on the top of your program.It will solve character encoding problems
#!/usr/bin/env python # -*- coding: utf-8 -*-