Incorrect String error when adding emoji to a database through a form

后端 未结 3 1812
终归单人心
终归单人心 2021-01-20 02:09

I can successfully add emoji (i.e. utf8mb4 data) to tables using mysql using the terminal.

When my Python Flask website tries to send emoji to the same database tabl

3条回答
  •  一个人的身影
    2021-01-20 02:55

    If you want to store unicode character into the database you need to Define column character set to utf8mb4.

    Also change character set of table if it is required.

    it will help you store data in unicode formate

    Thanks

提交回复
热议问题