Installed xampp stopped Russian characters are added through the form in the database. Before that there was a Denver, everything worked fine. Tell me how to fix the problem. Everywhere used cp-1251.

    2 answers 2

    to avoid problems with encoding, you should have the same encoding everywhere

    1. In DB (both base and tables)
    2. In the file (html encoding or php file)
    3. In the meta charset meta tag
    4. In the browser (in the settings)
    5. And if possible in htaccess - AddDefaultCharset utf8 (if it is utf8)

    If all this did not help, perhaps, as you said, in my.ini, the default encoding is left-handed.

      Use UTF-8 In the database, set the encoding utf8_general_ci

      • And why in Denver everything worked fine. Maybe the problem is in the settings of my.ini? - Andret