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="simon.zupan@stud-moderna.si"
objMail.From="info@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

Re: Problem with CDO by Egbert

Egbert
Sat May 08 03:08:10 CDT 2004

"simon" <simon.zupan@stud-moderna.si> wrote in message
news:OqzZXKENEHA.3452@TK2MSFTNGP10.phx.gbl...
> I have russion text in my database.
> my aspPage is:
>
> session.CodePage="1251"

Ð?Ñ?ивеÑ?!

Ad this as well :)
Response.CharSet = "Windows-1251"

b.t.w. better use utf-8 since this is a modern way to encode multilanguage.

--
compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm