UTF-8 page encoding. The coding of the table is utf8_general_ci. Server OS ubuntu-14.04-x86_64-minimal.

In the table, comments are written in Cyrillic, in phpmyadmin in the table they are written in the following format:

But the site displays comments normally, tell me what to do to make the text correctly displayed in the table?

Tried to add mysqli_set_charset ($ c, "utf8"); In the table, the text began to appear normally, but on the site when sampling: ??? ?? ????

  • Check your phpmyadmin settings - DNS
  • What exactly needs to be corrected? - Jriy
  • If the site and the database are friendly, but phpmyadmin is not, then most likely it is in phpmyadmin that the "other" display encoding settings are - DNS

1 answer 1

The question is settled. Installed on the display page mysqli_set_charset ($db, "utf8");