in reply to Substitute and converting to UTF8

I'd like to create a hash of the most often offending characters and their substitutions

You could do it that way but it's a losing battle. Is there some reason not to decode your CSV data from whatever encoding it really uses (as it is clearly not utf-8) and then process that decoded data? That ought to be the simpler approach.


🦛