This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author AndreyTomsk
Recipients AndreyTomsk, ezio.melotti, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2016-09-22.08:15:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474532111.27.0.448863550012.issue28246@psf.upfronthosting.co.za>
In-reply-to
Content
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>
History
Date User Action Args
2016-09-22 08:15:11AndreyTomsksetrecipients: + AndreyTomsk, paul.moore, vstinner, tim.golden, ezio.melotti, zach.ware, steve.dower
2016-09-22 08:15:11AndreyTomsksetmessageid: <1474532111.27.0.448863550012.issue28246@psf.upfronthosting.co.za>
2016-09-22 08:15:11AndreyTomsklinkissue28246 messages
2016-09-22 08:15:10AndreyTomskcreate