Fix utf8 handling in CardDAV

This relates to bug 2625

Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
(cherry picked from commit 5b9cd454fb)
r14.0.x
Emanoil Kotsev 9 years ago committed by Slávek Banko
parent 82b9cb4db5
commit 12ab541ee6

@ -427,7 +427,7 @@ bool ResourceCardDav::checkData(const TQString& data) {
TDEABC::VCardConverter converter; TDEABC::VCardConverter converter;
bool ret = true; bool ret = true;
TDEABC::VCardConverter conv; TDEABC::VCardConverter conv;
Addressee::List addressees = conv.parseVCards( data.utf8() ); Addressee::List addressees = conv.parseVCards( data );
if (addressees.isEmpty() == true) { if (addressees.isEmpty() == true) {
ret = false; ret = false;
} }
@ -456,7 +456,7 @@ bool ResourceCardDav::parseData(const TQString& data) {
log("actually parsing the data"); log("actually parsing the data");
TDEABC::VCardConverter conv; TDEABC::VCardConverter conv;
Addressee::List addressees = conv.parseVCards( data.utf8() ); Addressee::List addressees = conv.parseVCards( data );
Addressee::List::ConstIterator it; Addressee::List::ConstIterator it;
for( it = addressees.begin(); it != addressees.end(); ++it ) { for( it = addressees.begin(); it != addressees.end(); ++it ) {
TDEABC::Addressee addr = *it; TDEABC::Addressee addr = *it;

Loading…
Cancel
Save