Outlook ReportItem.Body returning messed up encoding for some users

前端 未结 4 1558
梦如初夏
梦如初夏 2021-01-18 12:16

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 inb

4条回答
  •  孤城傲影
    2021-01-18 13:09

    I just had this happen to my VBA function in Outlook that processes email bounce backs for orders and marks those orders as requiring attention. The original email in outlook looks fine but when I attempt to process it, the characters change to Chinese and Report.Body just shows question marks.

    I found using StrConv to convert to Unicode could get me the correct body contents for processing.

    Dim strBody as String
    strBody = StrConv(Report.Body, vbUnicode)
    

提交回复
热议问题