Mysql - Mysql2::Error: Incorrect string value:

后端 未结 3 1178
说谎
说谎 2021-02-03 12:12

So I built a scraper and am pulling in some objects. The issue is some are foreign languages and it is tripping the mysql db up a bit. This is the error I got. Any idea what I c

3条回答
  •  梦毁少年i
    2021-02-03 12:50

    Probably your table is set to a non Utf8 CHARACTER SET. You can change this with this sql:

    ALTER TABLE `your_database_name`.`your_table` CONVERT TO CHARACTER SET utf8
    

提交回复
热议问题