Which CDO.Message Charset Should I Use?

C

Chris

Hi,

I am relatively new to using CDO.Message, and I desperately need some
help!

I have an ASP 3.0 application that uses CDO to send automatic alerts
through Exchange 2003. How do I determine which charset to use for the
objMessage.BodyPart.CharSet?

The users of this application typically enter the HTMLBody message
through a form's textarea box. Often, they might cut and paste this
data from a MS Word file, which plays havoc on the message whenever
special characters are encountered, such as smart quotes, em dashes,
vulgar fractions and degree symbols.

Initially I tried the Replace function to exchange these characters for
their html counterparts; however, this appears not to affect the
CDO.message.

I have also tried the following with no success:
objMessage.BodyPart.CharSet = "us-ascii"
objMessage.BodyPart.CharSet = "utf-8"
objMessage.BodyPart.CharSet = "windows-1252"

Should I think about changing the charset in my General.asp page from
<META http-equiv=Content-Type content="text/html; charset=unicode"> to
something else?

I could really use some direction here to get this figured out. Thanks
in advance for any assistance you can offer!

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top