In [1]:
import locale

In [2]:
print(locale.getpreferredencoding())


UTF-8