Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root = r'some/path/here'
- root = pathlib.Path(root)
- path = root / 'en.tml'
- text = path.read_text()
- Traceback (most recent call last):
- File "<input>", line 1, in <module>
- File "c:\program files (x86)\python36-32\Lib\pathlib.py", line 1175, in read_text
- return f.read()
- File "C:\Users\anqxyr\.virtualenvs\PE\lib\encodings\cp1252.py", line 23, in decode
- return codecs.charmap_decode(input,self.errors,decoding_table)[0]
- UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 15663: character maps to <undefined>
Advertisement
Add Comment
Please, Sign In to add comment