中文insert数据库问题

报错如下,汉子无法insert数据库

ALTER TABLE user CONVERT TO CHARACTER SET utf8;

Cause: java.sql.SQLException: Incorrect string value: '\xE8\x82\x96\xE6\x9F\x90...' for column 'username' at row 1
; uncategorized SQLException; SQL state [HY000]; error code [1366]; Incorrect string value: '\xE8\x82\x96\xE6\x9F\x90...' for column 'username' at row 1; nested exception is java.sql.SQLException: Incorrect string value: '\xE8\x82\x96\xE6\x9F\x90...' for column 'username' at row 1

猜你喜欢

转载自blog.csdn.net/Isonion/article/details/133751923