I have a .txt file named "chinchars.txt". Inside, I have a single line with these two characters:
节日
How do I read this text file and return those to characters? Using this code:
inputFile = open('chinchars.txt').readlines()
It outputs this error:
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position
18: character maps to <undefined>
I believe I need to "decode" the characters someway. How would this be accomplished?