Home  >  Article  >  Backend Development  >  Using PHP's encoding function-Problem discovery 1_PHP tutorial

Using PHP's encoding function-Problem discovery 1_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:27:41692browse

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.

http://www.bkjia.com/PHPjc/531852.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/531852.htmlTechArticleEnvironment: Chinese w2k+apache+php4.06 (smtp on linux) I am using the mail function to send letters I discovered that if my subject is in Chinese, the received email will display Chinese as XXXX. The calling process...
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