Cleaning SQL “Incorrect string value” Error from PHP
问题 I've seem this question a million times, but everyone seems to want to solve the problem in the database. I do not. I'm getting this error when parsing a large text file, picking out what I need and inserting it into my database. Out of 24 thousand rows or so, 30 or so have invalid characters in them. Here is an example of the error, followed by the query that caused it: [Query Error: Incorrect string value: '\xEF\xBC\x89' for column 'company' at row 1] [INSERT INTO mac_address_db_new (hex