This article mainly introduces how to handle Chinese garbled characters during wordpress installation. it is a wonderful event in my project. after some research, I finally solved the problem. here I will record it and share it with you, if you have any need, refer. When you install wordpress, follow the steps in readme.html to install it. However, a line of garbled code appears when you access wp-admin/install. php:
The code is as follows:
Please refer to the following link for more information:
From this line of garbled text, we can see PHP and MySql. we can guess that it is a MySql connection error. After carefully checking the connection database parameters in the wp-config.php, it is found that the error is not a parameter, it must be the connection method has a problem.
I used to use mysqli. dll to connect to the database, it is possible that wordpress uses mysql instead of mysqli. dll, so I tried to find mysql in the ext file of php. dll, copy it to the php root directory, and then modify php. ini, uncomment extension = php_mysql.dll, restart apache, and OK.
The above is all the content in this article. I hope you will like it and it will be helpful for you to use WordPress.