From kde-commits Sat Oct 06 22:26:23 2007 From: =?utf-8?q?Andr=C3=A9=20W=C3=B6bbeking?= Date: Sat, 06 Oct 2007 22:26:23 +0000 To: kde-commits Subject: playground/base/plasma/applets/groupphoto Message-Id: <1191709583.911860.12278.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=119170959224404 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();