Using PHP's encoding feature-Problem Discovery 1_php Tutorial

Source: Internet
Author: User
Environment: Chinese w2k+apache+php4.06 (SMTP on Linux) when I use the Mail function to send a letter, I found that if my subject is Chinese, then the received mail will display Chinese as "XXXX" call process as follows: "; $msg. = "Member Name: Wayne
"; $msg. = "Password: Wayne"; $headers = "from:webmaster@263.netcontent-type:text/html; charset=gb2312 "; Mail ("$to", "$subject", "$msg", "$headers");?> program calls, using outlook6.0, found "mall" is displayed as "XXXX", and MSG in Chinese can be displayed correctly, according to experience, Know to encode the subject. After clear direction, I started looking for PHP coding functions.

http://www.bkjia.com/PHPjc/531852.html www.bkjia.com true http://www.bkjia.com/PHPjc/531852.html techarticle Environment: Chinese w2k+apache+php4.06 (SMTP on Linux) when I use the Mail function to send a letter, I found that if my subject is Chinese, then the received mail will display Chinese as the XXXX call process ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.