disnet1
12-11-2006, 03:52 PM
I'm developing Chinese website with form and CDO email and there is my problem. The CDO email works perfect in English but Chinese characters are gibberish and since I don't know any Chinese I have no idea how to set it up. Can anybody help me? I have written a simple script to demonstrate the problem. Here is the script written to demonstrate the problem:
------------------------------------------
<%@CODEPAGE = 936 %>
<%
Option Explicit
dim Chinese, HTMLBody, m, b
If request("Button")="Submit" then
Chinese=Request.Form("Chinese")
'****************** Send mail with CDO
set m = CreateObject("CDO.Message")
m.From = "DisNet <somebody@domain.com>"
m.To = Request.Form("To")
m.Subject = "Simplified Chinese content"
set b = m.bodypart
b.charset = "utf-8"
m.HTMLBody = (Chinese)
m.Send
set m = nothing
Response.Write "Message sent<br>"
Response.Write (Chinese)
Else
End if
%>
------------------------
The form including script can be seen at: http://www.disnet1.org/Marsha/Simplified/Form/intlmail_1.asp
I would greatly appreciate any help or recommendation.
Thank you.
------------------------------------------
<%@CODEPAGE = 936 %>
<%
Option Explicit
dim Chinese, HTMLBody, m, b
If request("Button")="Submit" then
Chinese=Request.Form("Chinese")
'****************** Send mail with CDO
set m = CreateObject("CDO.Message")
m.From = "DisNet <somebody@domain.com>"
m.To = Request.Form("To")
m.Subject = "Simplified Chinese content"
set b = m.bodypart
b.charset = "utf-8"
m.HTMLBody = (Chinese)
m.Send
set m = nothing
Response.Write "Message sent<br>"
Response.Write (Chinese)
Else
End if
%>
------------------------
The form including script can be seen at: http://www.disnet1.org/Marsha/Simplified/Form/intlmail_1.asp
I would greatly appreciate any help or recommendation.
Thank you.