When I was trying to open python from terminal via python command, I faced with an error out of nowhere, terminal works as normal but I want to learn why this happened, thanks in advance.
PS C:\Users\blackbird> py
AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Failed calling sys.__interactivehook__
Traceback (most recent call last):
File "C:\Users\blackbird\AppData\Local\Programs\Python\Python38\lib\site.py", line 440, in register_readline
readline.read_history_file(history)
File "C:\Users\blackbird\AppData\Local\Programs\Python\Python38\lib\site-packages\pyreadline\rlmain.py", line 165, in read_history_file
self.mode._history.read_history_file(filename)
File "C:\Users\blackbird\AppData\Local\Programs\Python\Python38\lib\site-packages\pyreadline\lineeditor\history.py", line 82, in read_history_file
for line in open(filename, 'r'):
File "C:\Users\blackbird\AppData\Local\Programs\Python\Python38\lib\encodings\cp1254.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9e in position 886: character maps to <undefined>
>>>