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
Try this with utf8_encode();
$sql = "INSERT INTO table (col1) VALUES ('".utf8_encode($input_variable)."')"; if ($conn->query($sql) === TRUE) { echo "Inserted!"; } else { echo "Error: " . $sql . "" . $conn->error; }