anqxyr

Untitled

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