diff options
Diffstat (limited to 'kfile-plugins/vcf/kfile_vcf.cpp')
-rw-r--r-- | kfile-plugins/vcf/kfile_vcf.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kfile-plugins/vcf/kfile_vcf.cpp b/kfile-plugins/vcf/kfile_vcf.cpp index 76b3383c6..5dcfc2c17 100644 --- a/kfile-plugins/vcf/kfile_vcf.cpp +++ b/kfile-plugins/vcf/kfile_vcf.cpp @@ -68,8 +68,11 @@ bool KVcfPlugin::readInfo( KFileMetaInfo& info, uint /*what*/ ) file.close(); KABC::VCardConverter converter; - KABC::Addressee addr = converter.parseVCard(contents); - +#if defined(KABC_VCARD_ENCODING_FIX) + KABC::Addressee addr = converter.parseVCardRaw( contents.utf8() ); +#else + KABC::Addressee addr = converter.parseVCard( contents ); +#endif KFileMetaInfoGroup group = appendGroup(info, "Technical"); // prepare the text |