Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X-SOCIALPROFILE problem #45

Open
mdevDE opened this issue Oct 20, 2019 · 4 comments
Open

X-SOCIALPROFILE problem #45

mdevDE opened this issue Oct 20, 2019 · 4 comments

Comments

@mdevDE
Copy link

mdevDE commented Oct 20, 2019

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:
Bildschirmfoto 2019-10-20 um 11 46 33

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

@krokhale
Copy link

Yes, seeing this on the iPhone too.

@genesisemmloh
Copy link

i see this fields doesnt work on android, am i correct?

@lukegeaves-ordapad
Copy link

As a quick fix, I am using:

            let vCardString = v.getFormattedString();
            vCardString = vCardString.replace(/SOCIALPROFILE;CHARSET=UTF-8;/gm, "SOCIALPROFILE;");

@amit777
Copy link

amit777 commented Oct 12, 2023

Does this fix potentially break non-apple clients?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants