I've just uninstalled all languages on my Windows 10 except for English and set the system locale to English (US). python
says that my preferred encoding is cp1252
which is quite the opposite of what I prefer (utf-8
).
C:\Users\nope>python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.getpreferredencoding()
'cp1252'
How do I change my preferred encoding to utf-8
? And most importantly where is python
getting cp1252
from?