About File Encoding

In Python 3 you no longer need to declare the UTF-8 encoding as the first line of the file, because all files by default are treated as UTF-8.

For example, this was recommended with Python 2, but not anymore with Python 3:

1
# -*- coding: utf-8 -*-

Tips and Tricks Programming Python 3