Can you show us how you are reading the file?

Make sure you are using QIODevice::Text mode while opening the file