Reputation: 130
I wrote a Plugin which generates a VCF-File in the Windows storage. If i save it in UTF-8, Windows People will be able to read correctly all Umlauts. If i import the vcf-file in Outlook every Ü is an ü.
If i save the VCF-File in ISO-8859-1 in Outlook, i can read the umlauts but then Windows People get the Black Questionmark for the umlauts.
How can i fix the encoding Problem? Is there a standard for all Platforms?
Upvotes: 1
Views: 2334
Reputation: 130
To put the Version to 2.1 and set the CHARSET to UTF-8 fixed the problem!
vcard.AppendLine("VERSION:2.1");
vcard.AppendFormat("N;CHARSET=utf-8:{0};{1};{2};{3}\r\n",
json.lastName,json.firstName, json.middleName,json.title);
Upvotes: 3