Thank you, the setAutoDetectUnicode(true) seemed to be the solution.
For those who should ever have a comparable problem, the following code did it:
FILE* fp = fopen( logFile.fileName().toAscii(), "r" );
in.setAutoDetectUnicode(true);
do
{
if( line.
contains(QString("[REPORT]"))) {
qout << line << endl;
}
line = in.readLine();
} while (!line.isNull());
FILE* fp = fopen( logFile.fileName().toAscii(), "r" );
QTextStream in(fp, QIODevice::ReadOnly);
in.setAutoDetectUnicode(true);
QString line;
do
{
if( line.contains(QString("[REPORT]")))
{
qout << line << endl;
}
line = in.readLine();
} while (!line.isNull());
To copy to clipboard, switch view to plain text mode
Bookmarks