Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XADM: CDO.Message Object that Contains Unicode Is Not Correctly Identified


View products that this article applies to.

Symptoms

When you programmatically load a Unicode text file into a CDO.Message object, and then you check the ContentMediaType property of the message object, the text/plain type is returned instead of themultipart/signed type.

If you convert the document to ANSI, it is correctly recognized as multipart/signed.

↑ Back to the top


Cause

This problem occurs because Microsoft Collaboration Data Objects for Windows 2000 (CDOSYS) does not parse the MIME message headers correctly when the message is loaded from a Unicode stream. This occurs because CDOSYS and Microsoft Collaboration Data Objects for Exchange 2000 Server (CDOEX) use the MimeOLE functionality to parse the message headers and body parts of messages. This functionality is provided by Microsoft Outlook Express in Inetcomm.dll and was not designed to support Unicode streams.

↑ Back to the top


Workaround

To work around this problem, configure your program to use ANSI instead of Unicode text streams.

↑ Back to the top


Status

This is a design limitation in Outlook Express.

↑ Back to the top


Keywords: KB813252, kbprb

↑ Back to the top

Article Info
Article ID : 813252
Revision : 5
Created on : 2/28/2007
Published on : 2/28/2007
Exists online : False
Views : 264