By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,837 Members | 1,766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,837 IT Pros & Developers. It's quick & easy.

Sending emails with CDONTs in Russian

P: n/a
I'm sending Russian text in an email generated from the website which
displays in the email as ??????????

The website is set to codepage 65001 and the charset to utf-8.

Please advise.

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Mar 17 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a

"Roger Withnell" <ro*********@THISupperbridge.co.uk> wrote in message
news:11*************@sp6iad.superfeed.net...
I'm sending Russian text in an email generated from the website which
displays in the email as ??????????

The website is set to codepage 65001 and the charset to utf-8.

Please advise.


Roger your question is a little abigous.

The web site is displaying the email or sending the email or both?

The email looks garbled when you view it in an email client?

What are you using to generate the email CDOSYS?

The session codepage only affects how response.write encodes.
Charset is simply a response header.

Neither impacts the creation of an email.

Anthony.


Mar 17 '06 #2

P: n/a

"Anthony Jones" <An*@yadayadayada.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

"Roger Withnell" <ro*********@THISupperbridge.co.uk> wrote in message
news:11*************@sp6iad.superfeed.net...
I'm sending Russian text in an email generated from the website which
displays in the email as ??????????

The website is set to codepage 65001 and the charset to utf-8.

Please advise.


Roger your question is a little abigous.

The web site is displaying the email or sending the email or both?

The email looks garbled when you view it in an email client?

What are you using to generate the email CDOSYS?

The session codepage only affects how response.write encodes.
Charset is simply a response header.

Neither impacts the creation of an email.

Anthony.

ASP page sends an email using CDONTS:

Set objMail = Server.Createobject("CDONTS.NewMail")
objMail.From = "Email"
objMail.To = vEmail
objMail.Subject = "Subject"
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.Body = htmlText
objMail.Send
Set objMail = Nothing

htmlText is the page in html as a complete html page <html> to </html> It
includes
<meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"">
in the header.

This works fine (and has done for ages in other applications) in English.
But the Russian characters appear as ??????????

Perhaps I should be using CDOSYS? If so, can you point me to an appropriate
tutorial?

Thanking you in anticipation.

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Mar 17 '06 #3

P: n/a

"Roger Withnell" <ro*********@THISupperbridge.co.uk> wrote in message
news:11**************@sp6iad.superfeed.net...

"Anthony Jones" <An*@yadayadayada.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

"Roger Withnell" <ro*********@THISupperbridge.co.uk> wrote in message
news:11*************@sp6iad.superfeed.net...
I'm sending Russian text in an email generated from the website which
displays in the email as ??????????

The website is set to codepage 65001 and the charset to utf-8.

Please advise.
Roger your question is a little abigous.

The web site is displaying the email or sending the email or both?

The email looks garbled when you view it in an email client?

What are you using to generate the email CDOSYS?

The session codepage only affects how response.write encodes.
Charset is simply a response header.

Neither impacts the creation of an email.

Anthony.

ASP page sends an email using CDONTS:

Set objMail = Server.Createobject("CDONTS.NewMail")
objMail.From = "Email"
objMail.To = vEmail
objMail.Subject = "Subject"
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.Body = htmlText
objMail.Send
Set objMail = Nothing

htmlText is the page in html as a complete html page <html> to </html> It
includes
<meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"">
in the header.

This works fine (and has done for ages in other applications) in English.
But the Russian characters appear as ??????????

Perhaps I should be using CDOSYS? If so, can you point me to an

appropriate tutorial?

Thanking you in anticipation.


With CDOSYS this can acheive what you are after:-

oMsg.HTMLBody = "<html><body>HTML content with in it</body></html>"
oMsg.HTMLBodyPart.CharSet = "utf-8"

this should give you something to go on:-

http://msdn.microsoft.com/library/de..._cdosys_vb.asp

Anthony
Mar 17 '06 #4

P: n/a
more on cdosys
http://www.powerasp.com/content/new/...ail_cdosys.asp

"Anthony Jones" <An*@yadayadayada.com> wrote in message
news:Ob*************@TK2MSFTNGP10.phx.gbl...

"Roger Withnell" <ro*********@THISupperbridge.co.uk> wrote in message
news:11**************@sp6iad.superfeed.net...

"Anthony Jones" <An*@yadayadayada.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
>
> "Roger Withnell" <ro*********@THISupperbridge.co.uk> wrote in message
> news:11*************@sp6iad.superfeed.net...
>> I'm sending Russian text in an email generated from the website which
>> displays in the email as ??????????
>>
>> The website is set to codepage 65001 and the charset to utf-8.
>>
>> Please advise.
>>
>>
>
> Roger your question is a little abigous.
>
> The web site is displaying the email or sending the email or both?
>
> The email looks garbled when you view it in an email client?
>
> What are you using to generate the email CDOSYS?
>
> The session codepage only affects how response.write encodes.
> Charset is simply a response header.
>
> Neither impacts the creation of an email.
>
> Anthony.
>

ASP page sends an email using CDONTS:

Set objMail = Server.Createobject("CDONTS.NewMail")
objMail.From = "Email"
objMail.To = vEmail
objMail.Subject = "Subject"
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.Body = htmlText
objMail.Send
Set objMail = Nothing

htmlText is the page in html as a complete html page <html> to </html>
It
includes
<meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"">
in the header.

This works fine (and has done for ages in other applications) in English.
But the Russian characters appear as ??????????

Perhaps I should be using CDOSYS? If so, can you point me to an

appropriate
tutorial?

Thanking you in anticipation.


With CDOSYS this can acheive what you are after:-

oMsg.HTMLBody = "<html><body>HTML content with in it</body></html>"
oMsg.HTMLBodyPart.CharSet = "utf-8"

this should give you something to go on:-

http://msdn.microsoft.com/library/de..._cdosys_vb.asp

Anthony

Mar 20 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.