There is a table in which records are stored in Russian. The character sets for the columns are different (utf8_unicode_ci, cp1251_general_ci, utf8_general_ci, utf8_bin). After connecting to the database I prescribe:
mysql_query("SET NAMES cp1251");
In the output, all values where there were Russian words (independent of the encoding) are null. If you do not register, then in the output instead of Russian letters are question marks. How to fix it? PS Table encoding utf8_general_ci. The browser coding tried to install on both cp1251 and utf8 , did not help.