I have an issue and I've wasted enough time on it already.
I'm writing the name of the files in a directory into my database, but some files have special characters in them, like accents, and I keep getting this error when I try to write.
SQLSTATE[ HY000 ]: General error: 1366 Incorrect string value.
I've already tried changing the charset of my database and its tables but it's still the same.
Thank you for your help.