I am getting this error when doing a big insert query into a table on MySQL 8:
Error 3988: Conversion from collation utf8mb4_general_ci into latin1_swedish_ci impossible for parameter
The data originally comes from a table with the utf8mb4 character set and then after processing it is inserted into a table with the latin1 character set.
It's getting stuck on this two-byte character: ż.
Is there an easy way for me to get MySQL to replace or strip out these characters, or a way for me to sanitise the input without sacrificing characters like ä which it seems to be able to handle?