K
K
Kifw2017-06-02 12:21:54
Database
Kifw, 2017-06-02 12:21:54

If Cyrillic krakozyabry only from the database, is it in it?

86d60ba706624b349b373dd7f72eb5e9.PNG
This is how text is displayed on the entire site, only data that is only from the database - characters.
I exported the database, the encoding is set to utf8-general-ci, everything worked fine on the local.

bfaf7a9666ba4444b397db07bc3023ee.PNG
In htaccess it is written AddDefaultCharset UTF-8
Why the data is displayed not in the encoding that is set?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Fixid, 2017-06-02
@Kifw

https://ru.stackoverflow.com/questions/37043/%D0%A...

N
nehaeve, 2017-06-09
@nehaeve

If the table itself in phpmyadmin displays normally, then set the data exchange encoding in the file where the connection to the database takes place: mysql_query("SET NAMES 'utf8'");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question