Bug 423458

Summary: Contacts with utf-8 characters in the name are not displayed correctly
Product: [Applications] kdeconnect Reporter: Alex <blazingkin>
Component: messaging-applicationAssignee: Simon Redman <simon>
Status: REPORTED ---    
Severity: minor    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alex 2020-06-24 17:41:51 UTC
SUMMARY
The KDE SMS app does not display contact names (or import contact photos) of contacts that have emojis in their names.

STEPS TO REPRODUCE
1. Edit a contact name to contain an emoji
2. Restart kdeconnect
3. Open SMS app and look at contact name

OBSERVED RESULT

Phone number is shown instead of contact name. Contact photo is not imported

EXPECTED RESULT

Contact should be imported properly

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 20.04
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION

The issue may be in the upstream `KF5PeopleVCard` library.

I debugged the `personAt` function in `smshelper.cpp` and found that the name for the contact is deformed right after importing.