Hi everyone,

I have a file .txt that, got from Internet, can be read by every text editor, from SCiTe to Notepad, and from WordPad to Word; but QFile can't read it.

Used procedure to open and read the file is very tested, so cannot be its fault.
If I cut/paste the content in a new file, than QFile read it normally.

It may seem a corrupted file, but if it is, then why text editors can open it?
Trying to read it by QFile, readLine() returns just 3 meaningless chars and testing around I got this informations (right after opened):

file.openMode => ReadOnly | Text
file.isOpen() => true
file.canReadLine() => false
file.readLine() => XXX (3 random chars)
file.size() => 982 (actual file size: 982 bytes)
file.atEnd() => false (after readLine())

that's it.
Is someone able to try an explanation?