Why is the character set displayed in the browser?

Hello!

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 windows 1251.


Answer 1, authority 100%

I usually always use

cp1251_general_ci

Try in the script, after connecting to the database, do something like this:

mysql_query('set names cp1251');