Print Page | Close Window

Setting the charset with CDONTS

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=4491
Printed Date: 30 March 2026 at 6:30am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Setting the charset with CDONTS
Posted By: zaboss
Subject: Setting the charset with CDONTS
Date Posted: 24 July 2003 at 8:19am
I need to send mail in my own language (Romanian) that have some special characters. We use charset iso-8859-2. How can I set that to CDONTS sending mail? I have:
  objMail.From = strFrom
  objMail.Subject = strSubject
  objMail.To = strTo
  objMail.BodyFormat =0
  objMail.MailFormat = 0
  objMail.Body = strBody
  objMail.Send
When sendint, it converts romanian characters to their equivalent in charset iso-8859-1.

-------------
Cristian Banu
http://www.soft4web.ro - Soft 4 web



Replies:
Posted By: stephen
Date Posted: 24 July 2003 at 10:37am

Have you tried setting it on the e-mail body  eg:

strBody= strBody & "<meta http-equiv=""Content-Type"" content=""text/html; charset=iso-8859-2"">"

if you haven't give that a go.



-------------
"Doing easily what others find difficult is talent; Doing what is impossilbe for talent is genius." -- Henri Frederic Amiel ( 1828-1881)
http://www.121People.com - www.121People.com


Posted By: zaboss
Date Posted: 24 July 2003 at 12:28pm
Nope, it's not working!

-------------
Cristian Banu
http://www.soft4web.ro - Soft 4 web



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net