mysql遇到1366: Incorrect string value的正確解決方法

本人在用mysql保存emoji表情數據的時候趕上了以下報錯:mysql mysql 1366: Incorrect string value: '\\xF0\\x9F\\xA5\\xB0\\xF0\\x9F for column 'msg_text' at row 1.sql 這是由於mysql默認的utf8只支持三個字節,可是emoji表情是4字節的,超出了mysql的utf8支持範圍,修改的
相關文章
相關標籤/搜索