L
L
lfoma2015-07-15 14:24:20
Apache HTTP Server
lfoma, 2015-07-15 14:24:20

Wordpress, when moving "???" instead of Russian letters, how to fix it?

Good afternoon! Something broke my head.
I'm moving my site from my hosting to someone else's.
On the site, data from the database is displayed in the form of question marks.
All database tables, all files, settings in utf-8. In .htaccess, I also added a couple of screenshots AddDefaultCharset utf-8
:
e21c2b98cc01455daeb562da76f39ff4.png39cc7fd5cfa740febf57be7e01951e1d.png
In the database, all lines are perfectly displayed in pure Russian.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lfoma, 2015-07-15
@lfoma

Guys, I sat here, smoked, and this is what I came up with:
In the wp-config.php file , in the MySQL connection settings, instead of the usual UTF-8 encoding, the encoding was 'utf8mb4'
Changed the line to:

/** Кодировка базы данных для создания таблиц. */
define('DB_CHARSET', 'utf8');

And everything worked!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question