插入MySQL 表中的某字段中 emoji表情,出现以下异常
报错:
### Cause: java.sql.SQLException: Incorrect string value: '\xF0\x9F\x98\xB5\xF0\x9F...' for column 'content' at row 1; uncategorized SQLException for SQL []; SQL state [HY000]; error code [1366]; Incorrect string value: '\xF0\x9F\x98\xB5\xF0\x9F...' for column 'content' at row 1; nested exception is java.sql.SQLException: Incorrect string value: '\xF0\x9F\x98\xB5\xF0\x9F...' for column 'content' at row 1
解决办法:
https://blog.51cto.com/wangfoye/1913450
https://www.jianshu.com/p/f7d7609de6b0
https://www.cnblogs.com/dashuai01/p/4601204.html
https://blog.csdn.net/spring_0534/article/details/53332577
最后支持
支持开源














网友评论