I’m having problems with the database. I imported the database to the hosting, specified the encoding both when creating a user and when importing:
cp1251_bin. Everything is fine in the mayadmin control panel, but the character set is displayed in the browser.
What could be the problem? Site and database encoding
Answer 1, authority 100%
I usually always use
Try in the script, after connecting to the database, do something like this:
mysql_query('set names cp1251');