Interesting... \x9f and \x8a are not valid Latin-1/8895 characters. My guess is that the CSV's are UTF-8 and your database is Latin-1. If that is the case, try converting the csv to 8859-1 with utf8_decode(). <br><br>
It is a bit of a hack, but it should work if the only languages you support are german/spanish/french/english. If you want your code to work with all languages, you need to change the db encoding to utf8, and make sure all input and output is UTF8.