[issue32286] python 2.7 cannot parse ''

2017-12-12 Thread STINNER Victor
STINNER Victor added the comment: Your file is not properly encoded to UTF-8: the Python 2 UTF-8 raises UnicodeDecodeError. Sorry but this is not a bug in Python, but a bug on your side. Please ask such question on the forum to ask Python questions like Stackoverflow or anything else. -

[issue32286] python 2.7 cannot parse ''

2017-12-12 Thread wangtie
wangtie added the comment: My ENV: Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:24:40) [MSC v.1500 64 bit ( AMD64)] on win32 -- type: -> behavior ___ Python tracker __

[issue32286] python 2.7 cannot parse ''

2017-12-12 Thread wangtie
New submission from wangtie : I have a txt file,use code UTF-8,and include char ''(ASCII code?), when use f.readlines() to get a list, the program exit without any exception,then I got a list without data after line which include char ''. -- components: Unicode files: b.txt messages: