SVN commit 722211 by woebbe: fixed readNames(): the html files are utf-8 encoded M +5 -6 groupphoto.cpp --- trunk/playground/base/plasma/applets/groupphoto/groupphoto.cpp #722210:722211 @@ -141,14 +141,13 @@ return; } - QTextStream in(&file); - while (!in.atEnd()) { - QString line = in.readLine(); + while (!file.atEnd()) { + const QByteArray line = file.readLine(); if (line.startsWith(" parts = line.split('"'); + const QList coords = parts[5].split(','); _person* person = new _person; - person->name = parts[3]; + person->name = QString::fromUtf8(parts[3]); person->x = coords[0].toInt(); person->y = coords[1].toInt(); person->width = coords[2].toInt();