java.sql.SQLException: Incorrect string value: '\xF0\x9F\x91\x88\xE6\x88...' for column 'content' at row 1
摘要:往MySQL插入数据时,报错如下 因为emoji表情导致,有两种解决方法 一、过滤掉字段中的emoji 二、将表编码设置为utf8mb4 若需还原展示该字段,则建议此种方式。
阅读全文
posted @ 2019-02-25 17:00