Forums

ASP

This topic is locked

CDONT, Unicode, custom headers?

Posted 19 Mar 2002 09:35:49
1
has voted
19 Mar 2002 09:35:49 Hank Tan-Tenn posted:
I've got a multi-lingual database storing data in Unicode (Access 2000). I've attempted to send some such data via CDONT e-mail. I thought this would be as easy as adding a few MIME headers specifying a proper character set for Unicode (e.g. utf-8). Alas, these headers never showed up (though other custom headers did)!

What I used:

objCDO.MailFormat = 0
objCDO.Value("MIME-Version" = "1.0"
objCDO.Value("Content-Type" = "text/plain; charset=utf-8"
objCDO.Value("Content-Transfer-Encoding" = "8bit"

Any hints would be appreciated.

[edit]
After reading a Microsoft document on the NewMail object (linked to on UDzone -- thanks, George!), I realized this object has a method not yet tried:

objCDO.MailFormat = 0
objCDO.SetLocaleIDs(65001)
' 65001 is the codepage ID for Unicode.

I also did not include the custom headers. As it turned out, setting the above 2 methods causes Content-type and Content-transfer-encoding headers to be added automatically (utf-8 and base-64, respectively). Outlook Express 6 was then able to display Unicode properly.
[/edit]

Edited by - akc on 19 Mar 2002 10:06:30

Replies

Replied 19 Mar 2002 09:37:51
19 Mar 2002 09:37:51 Hank Tan-Tenn replied:
Excuse me...did I use a rude word there? <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Reply to this topic