HTML submission Chinese string to PHP garbled problem resolution method

Source: Internet
Author: User

Taking Utf-8 as an example

1.IDE default encoding is Utf-8

2. In

3. Add "AddLanguage" or "addcharset" lines to the Apache configuration file httpd.conf, adding one line to the front of the lines: Adddefaultcharset utf-8

(There is no "addlanguage" or "Addcharset" in the newly installed Apache2.2, you can add it directly at the end of the httpd.conf file)

4. In the php.ini location file, locate the line beginning with Default_charset and add a line above it: Default_charset = "Utf-8"

HTML submission Chinese string to PHP garbled problem resolution method

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.