python如何处理带有emoji表情的字符串
天蓬老师
天蓬老师 2017-04-17 11:44:18
0
3
880

如何才能将从新浪微博抓取的某条含有emoji表情字符的数据添加进mysql数据库,mysql的版本是5.5.x,使用的是python语言。

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(3)
刘奇

After searching on the Internet for a long time, I finally found a solution, which is not perfect. My solution is to filter out the emoji characters and not write them to the mysql database.

黄舟

The essence of emoji is special unicode characters, as long as your database encoding supports unicode. List: http://www.unicode.org/charts/PDF/U1F300.pdf

迷茫

Just use utf8mb4 encoding for mysql

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template