解決 Incorrect string value: for column 'name' at row 1 問題

今天插入數據報錯: Incorrect string value: '\xE5\x8D\x97\xE5\xA4\xA9...' for column 'name' at row 1 首先想到的是mysql對應表的字符編碼不對。 後來看到確實是字符編碼問題。修改編碼爲utf-8,解決。
相關文章
相關標籤/搜索