The database encoding is utf8_general_ci, the encoding of the site is UTF-8, and the Russian text entered through the form looks like this (see picture). http://content.foto.mail.ru/mail/borisov.94/_answers/i-629.jpg

  • Check the site encoding again. You can even twice. The fact that in META is one, the file itself must be saved in utf8. - Sh4dow

1 answer 1

After connecting to the database:

mysql_query('set names "utf8"'); 
  • Does not work gives Incorrect string value: '\ x94Ð ...' for column 'name' at row 1 PS field type in table VARCHAR (64) - DennisBorisov
  • one
    In this query, there is no word "name" o_O @ alex_90, do you really need quotes? - Sh4dow
  • mysql_query ("SET NAMES 'cp1251'"); This one is 100% working. I just changed it to utf8. - alex_90