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 ''.
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.
History
Date
User
Action
Args
2022-04-11 14:58:55
admin
set
github: 76467
2017-12-12 08:49:49
vstinner
set
status: open -> closedresolution: not a bugmessages: + stage: resolved