【问题标题】:VCard import with umlauts are not working in Outlook with UTF-8 Encoding带有变音符号的 VCard 导入在带有 UTF-8 编码的 Outlook 中不起作用
【发布时间】:2017-06-20 07:30:58
【问题描述】:

我写了一个插件,它在 Windows 存储中生成一个 VCF 文件。如果我将其保存为 UTF-8Windows People 将能够正确读取所有元音变音。 如果我在 Outlook 中导入 vcf 文件,每个 Ü 都是 ü。

如果我将 VCF 文件保存在 Outlook 中的 ISO-8859-1 中,我可以读取元音变音,但是 然后 Windows 用户会得到变音符号的黑色问号。

如何解决编码问题?是否有适用于所有平台的标准?

【问题讨论】:

标签: encoding utf-8 outlook vcf-vcard


【解决方案1】:

将版本设置为 2.1 并将 CHARSET 设置为 UTF-8 解决了问题!

 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);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-10-03
    • 2014-08-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多