Evening,
I have HTML files that I am cleaning. These have some invalid Unicode characters that appear in my text editor like:
/B7
I want to replace these with either the character they should be, or a replacement character of my choice. For example, the /B7 character is a middot, but I want to replace it with a full-stop.
The function here: PHP - Fast way to strip all characters not displayable in browser from utf8 string
removes the invalid characters, but I am not keyed up enough on encoding to do anything more with it.