body.getAsync() returns Windows 的 Outlook 2016 意外字符

body.getAsync() returns unexpected characters on Outlook 2016 for Windows

Windows.

的 Outlook 2016

我正在使用函数 Office.context.mailbox.item.body.getAsync 来获取电子邮件内容:

if (Office.context.requirements.isSetSupported("mailbox", 1.3)) {
    Office.context.mailbox.item.body.getAsync("html", function (result) {
        if (result.status == Office.AsyncResultStatus.Succeeded) {
            var htmlBody = result.value;
            globalAddin.setLocalStorageItem('htmlEmailBody', htmlBody);
            globalAddin.getEmailSignature(htmlBody);
            window.location =
                globalAddin.randomizeUrl("composeemail/add_contact.html");
        }
    });
}

这适用于 Windows 的 Outlook 网页版和 Outlook 2013:

对于 Windows 的 Outlook 2016,它成功了,但是 returns 值字段中的未知字符 ÿþ<

关于如何解决这个问题有什么想法吗?

您是否尝试升级最新版本和正确的许可证。我安装最新版本并添加365试用账号后解决了。