Incorrect string value: '\\xF0\\x9F\\x98\\x9C</...' for column 'tempt_article_content' at row 1+
时间: 2023-09-17 17:09:24 浏览: 190
MySql 错误Incorrect string value for column
"Incorrect string value: '\\xF0\\x9F\\x98\\x9C</...' for column 'tempt_article_content' at row 1" 这个错误是由于数据库中对于该列的编码格式不兼容导致的。解决这个问题的方法是修改该列的编码格式为utf8mb4,这样就可以支持存储Emoji表情等特殊字符。可以使用类似的SQL语句进行修改:ALTER TABLE `表名` MODIFY COLUMN `列名` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; 这样就可以解决该错误并正常存储和显示特殊字符了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [MySQL 保存富文本编辑器 emoji表情报错 Incorrect string value: ‘\\xF0\\x9F\\x98\\x84</...](https://blog.csdn.net/qq_38517231/article/details/126061152)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [Incorrect string value: ‘\xF0\x9F\x8C\xB7’ for column ‘nickname’修改mysql某列的编码格式](https://download.csdn.net/download/weixin_38719540/13685177)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文