Open EmilMN opened 5 years ago
The problem with the vcf file in https://github.com/ProtonMail/Angular/issues/8945 is not really the unicode characters, but the fact that the vcards in the vcf file are 2.1 instead of 4.0. It seems the current parser (from the library ICAL.js) does not recognize such format, so an intermediate parser must be used
In my opinion let's not support it if the vcf version is not 4.0
That would be the easiest solution. Also, since vcards 4.0 are encoded in UTF8 there should be no issue with special characters (I tried some Arabic and it was fine). But I have no idea how many people are using older vcard formats
Google contacts uses vcard v3.0 and we need to check, but, I think there was at least one major email client that used vcard 2 for export.
I'm okay either way
As discussed in https://github.com/ProtonMail/Angular/issues/8945, the issue from v3 is reproducible on v4.
Contacts with Unicode strings cannot be imported. These types of vCards are natively created by some Android devices and other software.
Steps to reproduce:
Example:
You can find the sample file in the original issue (linked above).