Environment: Chinese w2k+apache+php4.06 (smtp on linux) When I used the mail function to send letters, I found that if my subject is Chinese, the received mail will display Chinese as "XXXX". Calling process As follows: "; $msg .= "Member name: wayne
"; $msg .= "Password: wayne"; $headers = "From: webmaster@263.net
Content-Type: text/html; charset=gb2312
"; mail("$to", "$subject", "$msg", "$headers"); ?> After calling the program, using Outlook 6.0 to receive mail, I found that "mall" is displayed as "XXXX", and The Chinese in msg can be displayed correctly. Based on experience, I know that the subject needs to be encoded. After clarifying the direction, I started looking for the encoding function of PHP.