Problem in downloading attachments

Hello All,

I am running an agent locally. The agent

  1. Refers to a view in a database,

  2. Locally downloads attachments (if any)

  3. Forms a mail memo and mails the document.

This agent executes w/o any issues for most of the documents but faces issues with documents having strange characters in the attachment names. (Especially if there some chinese characters in the attachment names)

e.g. - Say the attachment name is KPI 陈伯乐.doc. The piece of code in the agent is as follows

For AttachmentCounter = 1 To Ubound(Doc_Archive.AttachmentNames)+1

AttachmentName = Doc_Archive.AttachmentNames(AttachmentCounter-1)

									Set Set Mail_Object  = Doc_Archive.GetAttachment( AttachmentName)

Here I am not getting Mail_Object. The value of the mail object is nothing. (All the declarations are properly made in the code but not included here)

How to resolve this? Need help desperately.