We have a weird issue with Outlook lately that is impacting some users.
If certain users automate the Outlook Client to view bounce backs/ReportItems in a shared inbox, rather than returning the clear text of the message as indicated by the documentation we get back a unicode string that has been parsed as a UTF-8 string - so it looks like Chinese.
Now I can get past that with some code, but the additional issue is that this change occurs in outlook as well for all users with access to that inbox. The message itself as viewed in outlook appears as Chinese characters - the original unicode html parsed as UTF-8.
It seems like this might be a known issue, but I wanted to see if I could get some advice here.
We are using the normal methods to access the report item:
For Counter as Integer = Inbox.Items.Count To 1 Step -1 Dim Report As Outlook.ReportItem = Inbox.Items(Counter) Dim Body As String = Report.Body
The last line is where we get the garbaled text. In VBA it attempts to parse it as ASCII and returns a large block of "?" while in .Net it returns the value parsed as UTF-8 and we get the characters that appear Chinese. In either case the original report item in the inbox begins displaying as Chinese characters and continues to do so for all users of that inbox.
Any ideas?
UPDATE: I wanted to share an update on this since it seems like a few people are still seeing it.
I want to quickly emphasize that the encoding issue is discussed well here and that accessing the body text of the message via code is covered and fairly easy. However, the encoding issue continues to exist in the Outlook client and was never resolved, and this issue was my going concern. There must be some bug in the .Body
property which buggers up the encoding on the original message object on the Exchange server. Good luck to anyone who needs to resolve that particular issue.
UPDATE AGAIN: An answer and a more detailed description of the issue is posted below and selected as the answer.