Jan-28-2017, 02:44 PM
By default, Windows does not use 'utf-8', it uses 'code pages'. Your Pycharm settings most likely tells it to use 'utf-8', whereas your command terminal defaults to a code page. The code page is determined by the locale you chose at Windows installation. These code pages are based on standards created prior to the currently accepted 'utf-8' (which is a subset of Unicode). When Windows does use Unicode, it is utf-16, when you want to use utf-8, Windows has a (rather crappy, imho) code page of 65001.
A list of all Python supported code pages can be found at:
Python main directory \Lib\encodings
A good read is here : Unicode
A list of all Python supported code pages can be found at:
Python main directory \Lib\encodings
A good read is here : Unicode
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition