Commit d3384b37 authored by Grégory Oestreicher's avatar Grégory Oestreicher
Browse files

Convert VCard to UTF-8

BUG: 310137
FIXED-IN: 4.10.2
parent 7876766c
......@@ -153,7 +153,9 @@ DavItem DavUtils::createDavItem( const Akonadi::Item &item, const Akonadi::Colle
}
KABC::VCardConverter converter;
rawData = converter.createVCard( contact );
QByteArray localData = converter.exportVCard( contact, KABC::VCardConverter::v3_0 );
// Convert to UTF-8
rawData = QString::fromLocal8Bit( localData.data() ).toUtf8();
} else if ( item.hasPayload<IncidencePtr>() ) {
const IncidencePtr ptr = item.payload<IncidencePtr>();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment