UTF-8 Character Debug Tool.
If you match the sequence that occurs to the sequence in the chart and, the expected value in the chart matches the value that you expected to see, then the problem is being caused by UTF-8 bytes being interpreted asWindows-1252 or ISO 8859-1 bytes.
How to get from theyâ€re to theyre - Justin Weiss.
You can use a heuristic: only change strings that have one of the bad characters in them, like â. This works well if a character like â wont ever appear in a valid string. The last time I fixed this kind of bug, though, I wanted to play it safe.