N
N
Noxioustoo2018-01-24 17:12:48
PHP
Noxioustoo, 2018-01-24 17:12:48

Hieroglyphs instead of Cyrillic when writing and displaying from the database. How to fix?

The database and all fields of all tables are encoded utf8_general_ci. When writing data in Cyrillic and outputting the following: 5a6893d8afeea497774319.png.
All .php files are utf8 encoded (no BOM).
My database connection code is as follows:

$load = mysqli_connect(...);
$load->set_charset("utf8"); //Также пробовал mysqli_query($load, "SET NAMES UTF8");

How to fix it please tell me!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasiliy_M, 2018-01-24
@Vasiliy_M

phpfaq.com/mysql/charset

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question