M
M
Madi Altynbekov2016-02-13 13:47:58
PHP
Madi Altynbekov, 2016-02-13 13:47:58

It does not correctly display Russian text from the database, what should I do?

9be65fb412087b0868b9d71e2660ac93.jpg
It does not correctly display Russian text from the database, what should I do? Base and the site itself on utf 8

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zooks, 2016-02-13
@r3Dread

Try to specify the encoding when connecting to the database.
mysqli_set_charset ( $link , 'utf8' );

K
Kostya00723, 2016-02-19
@Kostya00723

You can replace the encoding for the database in the php.ini file so as
not to change it by force in each file (if there are a lot of them)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question