How to send email in Chinese?

Hi all,

I have a website in Chinese using php … well, I need to know how to send an email using mail() in Chinese.

Can anyone advise on how to do the Chinese encoding with mail() ?

Thanks

What’s the problem? As long as the user has installed the chinese-language-support (which will also be neccesary for him to write chinese characters) it doesn’t matter what you write in your mail, so you should also be able to write chinese characters. Of course the one who gets the e-mail should also have the chinese-language-support installed.

Let’s test if sitepointforums is able to show chinese characters:ÄãºÃ

No, it’s not !

You can send the email in HTML format and use

http-equiv=Content-Type content=“text/html; charset=XXX”

where XXX is the charset code for Chinese (simplified or traditional).
I guess you are already using this in your web pages, isn’t?

Paul

Originally posted by smorb
No, it’s not !

SitePoint can show Chinese characters.

Hello to you too smorb.

Sending email in Chinese is just the same as English, except people without the Chinese encoding installed will get jubblish.

Hey Robo, as you can see sitepoint can not display chinese characters. I tested it in my post above and all you can see is: ÄãºÃ

Sending email in Chinese is just the same as English, except people without the Chinese encoding installed will get jubblish

Yes, that is what I said.

Yup!

Sitepoint can show chinese character if he put this meta tag in the html header

http-equiv=Content-Type content=“text/html; charset=XXX”

Whereby xxx = gb2312 or big5.

Sending email in Chinese is just the same as English, except people without the Chinese encoding installed will get jubblish

My problem is even if the user had Chinese encoding installed, it’s still showing jubblish…

I had to manually change encoding to chinese char set in outlook express so that it will show properly. But the user may not know this… they will think this is a junk and delete it as they don’t know how to view it in outlook.

I notice some chinese email sent to my mailbox, it can automatically display correctly without doing anything manually. So, I guess there must be something that we need to do / can do in the coding, mail() perhap, that can make the chinese char to display correctly automatically.

I had inspected some email send in chinese which display automatically … I found that the email header itself contain a char set setting when view in the property.

How did they do this ? Anyone know ?

mail() includes commands to input headers, it goes like

mail($address,$subject,$content,$header)

So just put in the header you saw in those Chinese emails into the mail() function.