vCards-js
vCards-js copied to clipboard
X-SOCIALPROFILE problem
Hi first of all thank you for sharing this package with the community.
I had a problem when I tried to import a vCard with a X-SOCIALPROFILE into macOSX address book. The Mac app was not able to understand the encoding, please see the imported result:
Removing the encodingPrefix did the trick (line 378) - however I am not sure if this is conform to the vCard standard. formattedVCardString += 'X-SOCIALPROFILE' + ';TYPE=' + key + ':' + e(vCard.socialUrls[key]) + nl();
Could you please look into this problem?
Cheers, Michael
Yes, seeing this on the iPhone too.
i see this fields doesnt work on android, am i correct?
As a quick fix, I am using:
let vCardString = v.getFormattedString();
vCardString = vCardString.replace(/SOCIALPROFILE;CHARSET=UTF-8;/gm, "SOCIALPROFILE;");
Does this fix potentially break non-apple clients?