Home>Article>CMS Tutorial> What to do if php wordpress is garbled

What to do if php wordpress is garbled

藏色散人
藏色散人 Original
2020-09-11 09:39:49 4121browse

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.

What to do if php wordpress is garbled

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn