phpMyAdmin display Chinese garbled related problems

Source: Internet
Author: User
phpMyAdmin Display Chinese garbled problem
Beginners PHP Programming, do a book management system practice practiced hand, there is a problem of Chinese garbled, find the relevant post on the Internet can not solve, I hope you help the great God,

Database book arrangement is UTF8_GENERAL_CI, in the data table, all the tables involved in Chinese, the settings are also Utf8_general_ci,mysql connection proofing is also used in utf8_general_ci,php Mysql_ Query set is the utf-8,html page is , I write PHP using the sublime Text3, there is a ConvertToUTF8 transcoding plugin.


Although the phpMyAdmin Book data table Chinese is garbled, but my computer on the page display is the correct Chinese, change computer is not, the following is the relevant settings of the picture

------to solve the idea----------------------
mysql_query ("Set names UTF8");
------to solve the idea----------------------
mysql_query ("Set names UTF8");

Utf-8 in MySQL to write UTF8, the other character set code according to the formal wording, only this exception

But will mysql_query ("Set names Utf-8");
Change to mysql_query ("Set names UTF8"); After, and can not change the situation before.
Instead, the program is garbled for what you've entered.
  • 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.