Mysql 保存汉字出现 General error: 1366 Incorrect string value

SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\\xE4\\xB8\\xB0\\xE5\\xAF\\x8C...' for column 'comment' at row 1 (SQL: insert into `heroes` (`name`, `age`, `comment`) values (fsdfaf, 11, 保存汉字的地方))

登陆 phpMyAdmin 将相应字段的“排序规则”改成“utf8_bin”ok。

你可能感兴趣的:(Mysql 保存汉字出现 General error: 1366 Incorrect string value)