Home >php教程 >php手册 >使用php的编码功能-问题发现1

使用php的编码功能-问题发现1

WBOY
WBOYOriginal
2016-06-13 10:27:361398browse

环境:中文w2k+apache+php4.06(smtp在linux上) 我在使用mail函数发信的时候发现,如果我的subject是中文,那么收到的mail就会把中文显示为"XXXX" 调用过程如下: "; $msg .= "会员名:wayne
"; $msg .= "密码:wayne"; $headers = "From: webmaster@263.net Content-Type: text/html; charset=gb2312 "; mail("$to", "$subject", "$msg", "$headers"); ?> 程序调用以后,使用outlook6.0收信,发现"商城"被显示为"XXXX",而msg中的中文可以正确显示,根据经验,知道要把subject进行编码。明确方向以后,我就着手寻找php的编码函数。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn