mysql插入中文异常:Incorrect string value: ‘\xE5\xB0\x8F\xE9\xBE\x99...‘ for column ‘name‘ at row 1

问题:插入中文的时候显示:Incorrect string value: '\xE5\xB0\x8F\xE9\xBE\x99...' for column 'name' at row 1

mysql插入中文异常:Incorrect string value: ‘\xE5\xB0\x8F\xE9\xBE\x99...‘ for column ‘name‘ at row 1

解决方法:找到mysql/my.ini 把字符集修改为uft8

mysql插入中文异常:Incorrect string value: ‘\xE5\xB0\x8F\xE9\xBE\x99...‘ for column ‘name‘ at row 1

mysql插入中文异常:Incorrect string value: ‘\xE5\xB0\x8F\xE9\xBE\x99...‘ for column ‘name‘ at row 1

如果还是不行找到你的table修改它的字符集 

mysql插入中文异常:Incorrect string value: ‘\xE5\xB0\x8F\xE9\xBE\x99...‘ for column ‘name‘ at row 1

 

mysql插入中文异常:Incorrect string value: ‘\xE5\xB0\x8F\xE9\xBE\x99...‘ for column ‘name‘ at row 1

 

上一篇:python—wlxings对excel的控制基础2


下一篇:php 实用例子:购物车 涉及session与ajax