Home > Article > CMS Tutorial > What to do if php wordpress is garbled
php WordPress garbled solution: first open the "wp-config.php" file; then modify the content to "define('DB_CHARSET', ");"; then set the encoding of the new database to "latin1_swedish_ci "That's it.
Recommended: "WordPress Tutorial"
1:
1 Rewrite "define('DB_CHARSET', 'utf8′);" in the wp-config.php file is "define('DB_CHARSET', ");" (note that double quotes are not included), that is, this code does not specify any characters Set;
2 Set the encoding of the new database to latin1_swedish_ci (set in "Operation");
3 Import the backup database file in uft8 format.
Two:
The encoding problem in the wp-config.php file caused
# vi wp-config.php
to be found and modified as follows:
define('DB_CHARSET', 'utf8');
The above is the detailed content of What to do if php wordpress is garbled. For more information, please follow other related articles on the PHP Chinese website!