messagingapp/msgui/appengine/src/conversationsmodel.cpp
changeset 46 b1f0785c289d
parent 41 25fe1fe642e3
child 48 4f501b74aeb1
--- a/messagingapp/msgui/appengine/src/conversationsmodel.cpp	Fri Jul 09 14:46:10 2010 +0530
+++ b/messagingapp/msgui/appengine/src/conversationsmodel.cpp	Tue Jul 13 22:09:22 2010 +0530
@@ -555,7 +555,14 @@
                 {
                     QFile file(objectList[index]->path());
                     file.open(QIODevice::ReadOnly);
-                    textContent = file.readAll();
+                    QByteArray textArray;
+                    textArray = file.readAll();
+                    char *data = new char[textArray.size()+1];
+                    strcpy(data,textArray.data());
+                    //This is needed since MMS text content 
+                    //is stored in UTF8 format
+                    textContent = textContent.fromUtf8(data,strlen(data));
+                    delete []data;
                     item.setData(textContent, BodyText);
                     isBodyTextSet = true;
                     file.close();