Re: Problem with unicode (Chinese) email sent using ASP
From: Mandar (mandar.date_at_gmail.com)
Date: 09/20/04
- Next message: Bruce Hensley: "Re: detect print job completion from vbscript"
- Previous message: Tushar: "How to call system functions from vbscript??"
- In reply to: Viatcheslav V. Vassiliev: "Re: Problem with unicode (Chinese) email sent using ASP"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 20 Sep 2004 06:55:03 -0700
Viatcheslav,
Thanks a lot.
Following solution worked!!!
Response.Codepage = 65001
Response.Charset = "utf-8"
I could successfully send unicode characters in email.
But there is a problem in viewing unicode characters in subject line when
viewed in Microsoft Outlook, though unicode characters are displayed
correctly in the message body. The subject shows "?? ??? ??? ????, ??? ??
???? ????".
Is there any setting or code change required to correct this.
Thanks and Regards,
Mandar Date
"Viatcheslav V. Vassiliev" wrote:
> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
> This means that browser should read page as encoded in UTF-8 but does not
> says ASP to encode page as UTF-8. Try
>
> <% @Codepage="UTF-8"%>
>
> (no space between <% and @) after @Language, or add in code (before any of
> Response.Write):
>
> Response.Codepage = 65001
> Response.Charset = "utf-8"
>
> //------------------------------------
> Regards,
> Vassiliev V. V.
> http://www-sharp.com -
> Scripting/HTA/.Net Framework IDE
>
> "Mandar" <mandar.date@gmail.com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
> news:8BBA4D49-304C-4807-A785-9AA332FECEEE@microsoft.com...
> > Hi
> >
> > I am trying to send Chinese ( Unicode) Email through ASP CODSYS object. I
> > have set message encoding as UTF-8.
> > But the email sent through the page is displaying garbage when viewed in
> > Outlook express or any other email services. The ASP code is as follows:
> >
> > Can anybody help me on this?
> >
> > Thanks and Regards,
> > Mandar Date
> >
> >
> > <%@ Language=VBScript %>
> > <HTML>
> > <HEAD>
> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
> > <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
> > </HEAD>
> > <BODY>
> > <form method=post>
> > <input name=subject>
> > <input name=message>
> > <input name=posted type = submit value = 'Send'>
> > <%
> > dim iconf
> > dim flds
> > set iconf=server.CreateObject("CDO.Configuration")
> > set flds=iconf.Fields
> > flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1
> >
> >
> flds("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirecto
> ry") = "c:\inetpub\mailroot\pickup"
> >
> > flds("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
> > flds.update
> >
> > if request("posted") <> "" then
> > Dim objMail
> > Set objMail = Server.CreateObject("CDO.Message")
> > objMail.Configuration=iconf
> > objMail.From = "mandar.date@patni.com"
> > objMail.To = "mandar.date@patni.com"
> > objMail.cc = "mandar.date@gmail.com"
> > objMail.bcc = "datemandar@yahoo.com;mandar.date@india.com"
> > objMail.Subject = request("subject")
> > objMail.BodyPart.Charset = "UTF-8"
> > objMail.TextBody = request("message")
> > objMail.Send
> > Response.write "Message was sent with subject " & request("subject") & "
> > and body " & request ("message")
> > end if
> > %>
> > </form>
> > </BODY>
> > </HTML>
> >
>
>
>
- Next message: Bruce Hensley: "Re: detect print job completion from vbscript"
- Previous message: Tushar: "How to call system functions from vbscript??"
- In reply to: Viatcheslav V. Vassiliev: "Re: Problem with unicode (Chinese) email sent using ASP"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|