0
votes

I have an outlook addin currently in development that reads mail properties from outlook and displays on a winform.

I built the outlook on an environment with outlook professional 2013. All functionalities are good. Properties like, sendername, from, to etc..gets readably displayed on a winform.

This is how i access the properties of a mail.

Outlook.MailItem mail;
mail.Sender.Name;

Now, If i take the addin on an environment with the same system locale but different outlook (Outlook 365)

I experience decoding issues when trying to read some particular mails. So for example if i am accessing a mail from sender : Adèle

Outlook.MailItem mail;
mail.Sender.Name; // ---> This returns Ad?le

The mail has a UTF-8 encoding when i checked with outlook spy. The PC locales are the same.

One weird thing is, I copied the mail from the outlook 365 environment to the other (outlook professional) and have the issue, but when i copy the mail and import from the outlook professional environment to the outlook 365, it works correctly. So i think this has to do with the way outlook 365 saves or represents it's objects ? How can i approach this issue ? Is it fixable on my end ?

Can you check the exact version numbers of your Outlook installations? Also make sure you have identical settings in Options > Advanced > International Options (I assume you already made sure that you access the same message from the same sender on both systems?) - Dirk Vollmar
@DirkVollmar Will present my findings 2moro when i am on the system, Thanks :) - Undisputed007