Working with UTF-8 encoding in Python source [duplicate]
In Python 3, UTF-8 is the default source encoding (see PEP 3120), so Unicode characters can be used anywhere. In Python 2, you can declare in the source code header: # -*- coding: utf-8 -*- …. This is described in PEP 0263. Then you can use UTF-8 in strings: # -*- coding: utf-8 -*- u … Read more