[window] UnicodeDecodeError: 'charmap' codec can't decode [python from comandline cmd]

 

[window][] UnicodeDecodeError: 'charmap' codec can't decode byte X in position Y: character maps to <undefined>


C:\Users\ADMIN\.conda\envs\myenv\Lib\site-packages\pyreadline\lineeditor\history.py


Change:

for line in open(filename, 'r'):

=>

for line in open(filename, 'r', encoding="utf8"):

Comments