我有一个法语字符串变量:
objMail.Subject = "Confirmation d’une demande de réservation d’une maison de villégiature pour"
这是发送给客户的电子邮件的主题。
问题是当他们收到电子邮件时,特殊字符“e”和“'”并没有转换成各自的符号。
我该如何纠正?有什么特殊代码吗?
编辑:这是 VBScript 代码
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.To = email
objMail.From = "Vacation.Homes@gwl.ca"
objMail.Cc = "Vacation.Homes@gwl.ca"
If Session("ACCESS_LEVEL") = "A" Then
objMail.Subject = "Confirmation of Vacation Homes request submitted for " & strEEName
ElseIf Session("LANG") = "FR" THEN
objMail.Subject = "Confirmation d’une demande de reservation d’une maison de villegiature pour"
Else
objMail.Subject = "Confirmation of Vacation Homes request received"
End If
objMail.Body = strMessageText
objMail.Send
WriteLogMsg ">>>>>>>>> CONFIRMATION EMAIL SENT TO " & email & " <<<<<<<<<< (SubmitRequest.asp)"
Set objMail = Nothing