f = open (filename , 'r')
result = f.read()
print(result)
Traceback (most recent call last):
File "file.py", line 10, in <module>
result = f.read()
File "C:\Python34\lib\encodings\cp1251.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 10419: ch
aracter maps to <undefined>
#!/usr/bin/env python
# -*- coding: utf-8 -*-