>>> a = os.popen('chcp 65001')
>>> a.read()
'Active code page: 65001\n'
>>> a.close()
>>> a = os.popen('chcp')
>>> a.read()
'Active code page: 437\n'
>>> a.close()
After I set the codepage to 65001, the next time i call chcp it should say the active codepage is 65001, not 437. I tried this in windows command prompt and it worked. Why doesn't it work through python code?