Forum Moderators: open

Message Too Old, No Replies

CDONTS - How can I sen international characters?

         

Paco

3:50 pm on Oct 30, 2003 (gmt 0)

10+ Year Member



I use a simpe form to send emails using CDONTS. The problem is that if the text I want to send, contains any special characters they don't arrive properly. Example of these special characters are:

ñ , á , é , í , ö , ï ...

Is it a CDONTS limitation? is there a workaround?

Xoc

1:18 am on Nov 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think it's a character set issue. Anyone know how to specify the character set that you sending the mail with.

IanTurner

1:20 am on Nov 1, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Not a problem I have come across, maybe one of the Europeans could answer this better.

Paco

3:39 pm on Nov 3, 2003 (gmt 0)

10+ Year Member



Got it.

It works if emails are sent in html format with the charset specified in the message's HTML:

...
HTML = "<!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML//EN"">" & NL
HTML = HTML & "<html>"
HTML = HTML & "<head>"
HTML = HTML & "<meta http-equiv=""Content-Type"""
HTML = HTML & "content=""text/html; charset=iso-8859-1"">"
...
myMail.From = ...
myMail.To = ...
myMail.Subject = ...
myMail.BodyFormat = 0
myMail.MailFormat = 0
myMail.Body = HTML
myMail.Send
...

Paco

8:34 am on Nov 4, 2003 (gmt 0)

10+ Year Member



:(

Any way to do it without sending emails in html format?

IanTurner

2:18 pm on Nov 4, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Have you tried chanign these variables in the ASP?

Response.CodePage = 65001
Response.CharSet = "utf-8"

Response.CodePage = 1252
Response.CharSet = "windows-1252"

I'm sure there's another for the Euro charset too.

Paco

2:49 pm on Nov 4, 2003 (gmt 0)

10+ Year Member



Have you tried chanign these variables in the ASP?
Response.CodePage = 65001
Response.CharSet = "utf-8"

Response.CodePage = 1252
Response.CharSet = "windows-1252"

I'm sure there's another for the Euro charset too.

No until now.

I'm getting a strange error:

Runtime error error '800a01b6'

The object doesn't accept the property or method: 'CodePage'