I have problems with the database. I imported the base to the hosting, I specified the encoding both when creating the user and when importing: cp1251_bin . In the control panel mayadmin everything is in order, and in the browser issued a set of characters.

What could be the problem? Encoding of the site and database windows 1251 .

    1 answer 1

    I usually always use


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

     mysql_query('set names cp1251'); 
    • thank you so much! just one line and everything worked out! and as soon as I have not tried it already! - Regina