Message277206
File read operation fails when gets specific cyrillic symbol. Tested with script:
testFile = open('ResourceStrings.rc', 'r')
for line in testFile:
print(line)
Exception message:
Traceback (most recent call last):
File "min_test.py", line 6, in <module>
for line in testFile:
File "C:\Users\afi\AppData\Local\Programs\Python\Python36\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 24: character maps to <undefined> |
|
Date |
User |
Action |
Args |
2016-09-22 08:15:11 | AndreyTomsk | set | recipients:
+ AndreyTomsk, paul.moore, vstinner, tim.golden, ezio.melotti, zach.ware, steve.dower |
2016-09-22 08:15:11 | AndreyTomsk | set | messageid: <1474532111.27.0.448863550012.issue28246@psf.upfronthosting.co.za> |
2016-09-22 08:15:11 | AndreyTomsk | link | issue28246 messages |
2016-09-22 08:15:10 | AndreyTomsk | create | |
|