From: Stewart H. <she...@us...> - 2005-03-05 05:01:16
|
Update of /cvsroot/multisync/multisync/plugins/kdepim_plugin/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7921/plugins/kdepim_plugin/src Modified Files: Tag: branch_08X kaddrbook.cpp Log Message: Added UTF8 support to the plugin. Thanks to Benoît Pothier for this contribution. Index: kaddrbook.cpp =================================================================== RCS file: /cvsroot/multisync/multisync/plugins/kdepim_plugin/src/Attic/kaddrbook.cpp,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -u -d -r1.1.2.7 -r1.1.2.8 --- kaddrbook.cpp 30 Dec 2004 05:01:48 -0000 1.1.2.7 +++ kaddrbook.cpp 5 Mar 2005 05:00:53 -0000 1.1.2.8 @@ -260,7 +260,7 @@ QString card = converter.createVCard(*it); // gmalloc a copy of the VCARD string - chobj->comp = g_strdup(card.latin1()); + chobj->comp = g_strdup(card.utf8()); if (multisync_debug) printf("%s",chobj->comp); @@ -357,7 +357,7 @@ // convert VCARD string from obj->comp into an Addresse object. // KABC::VCardConverter doesnt do VCARD unfolding so we must do it ourselves first. unfold_vcard(obj->comp); - KABC::Addressee addressee = converter.parseVCard(QString(obj->comp)); + KABC::Addressee addressee = converter.parseVCard(QString(obj->comp).utf8()); //At this point the UID in the addressee object belongs to the //other device, we need to set the KDE UID as supplied by the sync engine. @@ -381,7 +381,7 @@ // convert VCARD string from obj->comp into an Addresse object // KABC::VCardConverter doesnt do VCARD unfolding so we must do it ourselves first. unfold_vcard(obj->comp); - KABC::Addressee addressee = converter.parseVCard(QString(obj->comp)); + KABC::Addressee addressee = converter.parseVCard(QString(obj->comp).utf8()); //At this point the UID in the addressee object belongs to the //other device and needs to be replaced by one that is unique |