php Error description: Incorrect string value: '\xF4t l'\xE9…' on insert

前端 未结 2 2012
孤街浪徒
孤街浪徒 2021-01-13 07:08

I am inserting data from a UTF8-general-ci table to another UTF8-general-ci table. These are articles. About 20 or 30 will not insert due to random use of French titles or p

2条回答
  •  盖世英雄少女心
    2021-01-13 07:34

    The bytes you've quoted in your question (F4 and E9) aren't valid in UTF-8 data. Some or all of your data is probably actually ISO-8859-1 — you'll need to convert it to UTF-8 using mb_convert_encoding() or iconv().

提交回复
热议问题