Click to See Complete Forum and Search --> : Simplified Chinese CDO script


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.

russell
12-11-2006, 07:10 PM
do u have GBK installed on your machine?

disnet1
12-11-2006, 09:35 PM
No (I'm not sure, it is not my machine) but I can read other Chinese emails. I'm using Outlook 2003 for email and regardles what encoding I look it is bad.

russell
12-11-2006, 10:00 PM
I *Think* server that script runs on needs GBK installed. how r u getting chinese characters into it in 1st place?

disnet1
12-12-2006, 06:08 AM
I don't think so, because if I create the form with FrontPage and use FP extensions, everyting works. The problem is that I can't use FP, it has to be ASP script. It drives me crazy. :rolleyes: