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
1 answer
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
- oneIn 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
|