I have russion text in my database.
my aspPage is:
session.CodePage="1251"
sql="SELECT text from testRuski where id=1"
text=connection.execute(sql).Fields.Item(0).Value
Set objMail = Server.CreateObject("CDO.Message")
HTML = "<!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML//EN"">" & NL
HTML = HTML & "<html>"
HTML = HTML & "<head>"
html=html&"<META HTTP-EQUIV="&chr(34)&"Content-Type"" Content=""text-html;
charset=Windows-1251"">"
HTML = HTML & "</head>"
HTML = HTML & "<body>"
HTML = HTML & text&"<BR></body>"
strBody="Your string in native language"
objMail.HTMLBody=html
objMail.To="si*********@stud-moderna.si"
objMail.From="in**@stud-moderna.si"
objMail.Subject="test"
objMail.Send
set objMail=nothing
response.write html
response.end
On my page, I see:
??????????, ??????? ? ????????? ????
so russion text like it should be
but when I get email, I see:
??????????, ??????? ? ????????? ????
Where is the problem, how can I solve this?
Thank you,
Simon