PHP Chinese garbled problem Summary and solution _php Tutorial

Source: Internet
Author: User
Cause PHP page in Chinese garbled problem has a large number of collection and solution, resulting in Chinese garbled is generally the database and page encoding inconsistency caused by, I will give you a direct introduction to the solution. 、


1. When creating a database, select Utf-8 encoding

2. Select UTF-8 encoding when creating PHP files

3. Prevent garbled mysql_query (' Set names UTF8 ') in data transmission;

4. On the static page add


Personal Build Justice: It is recommended that the encoding of the database, PHP files, and HTML charset be set to a consistent utf-8 before development.

http://www.bkjia.com/PHPjc/632109.html www.bkjia.com true http://www.bkjia.com/PHPjc/632109.html techarticle cause PHP page in Chinese garbled problem has a large number of collection and solution, resulting in Chinese garbled is generally the database and page encoding inconsistency caused, the following I will give you a direct introduction to solve ...

  • 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.