Emoji表情符号录入MySQL数据库报错的解决方案
1,查看tomcat后台日志,核心报错信息如下: Caused by: java.sql.SQLException: Incorrect string value: '\xF0\x9F\x98\x97\xF0\x9F...' for column 'CONTENT' at row 12,先去修改表字段字符集为utf8mb4: ALTER TABLE UGC_REVIEW_CONTENT
原创
2016-02-01 10:01:40 ·
930 阅读 ·
0 评论