Check Chinese character garbled characters in phpmyadmin

Source: Internet
Author: User
Check Chinese character garbled characters in phpmyadmin. The PHP page uses UTF-8 encoding. when a database is created, utf8_general_ci is used, but the Chinese characters written by the PHP program are garbled in PHPMYADMIN, but are read and displayed on the webpage using the PHP program, it is normal again. How can I set it to check Chinese character garbled characters in phpmyadmin.
The PHP page uses UTF-8 encoding and utf8_general_ci is used for database creation.
However, the Chinese characters written by the PHP program are garbled characters in PHPMYADMIN, but it is normal to use the PHP program to read the characters displayed on the webpage.
How can I set it so that the written Chinese characters are not garbled in PHPMYADMIN.

In this environment, I have installed the open-source program dizcus and wordpress. this problem does not occur. in this case, it should not be the problem of phpmyadmin.

How can this problem be solved ??

------ Solution --------------------
Add:
Mysql_query ("set names utf8 ");
------ Solution --------------------
The reason is that the php program did not declare the character set to be used (set names utf8) before writing the Chinese characters)
------ Solution --------------------
Mysql_query ("set names utf8") for each database connection ");

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.