Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Russian characters not displaying correctly in the subject field

Status
Not open for further replies.

FesterSXS

Programmer
Feb 4, 2002
2,196
0
0
GB
This message has also been posted in the ASP forum - thread333-1412530

I have the following code creating emails based on information submitted through a form. The bodytext of the email (in Russian) is showing up fine in the delivered email, however, the subject is showing all the Russian cyrillic characters as question marks.

I have set the charset of the bodytext to utf-8 but this is not affecting the subject. Does anyone have any ideas what I can do to get the subject displaying correctly?

kind regards

Tony

Code:
...
Dim objCustomerMail

'Send confirmation e-mail to customer
Set objCustomerMail = Server.CreateObject("CDO.Message")

objCustomerMail.BodyPart.Charset = "utf-8"
objCustomerMail.Subject = "[red]Russian characters to appear in here[/red]"
objCustomerMail.From = strAssociateEmail
objCustomerMail.To = strCustomerEmail
objCustomerMail.TextBody = strBodyText
objCustomerMail.Configuration.Fields.Item("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/sendusing")[/URL] = 1
objCustomerMail.Configuration.Fields.Item("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserver")[/URL] = "localhost"
objCustomerMail.Configuration.Fields.Item("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserverport")[/URL] = 25
objCustomerMail.Configuration.Fields.Update
objCustomerMail.Send

Set objCustomerMail = Nothing

Tony
---------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top