You ever go to Wikipedia page on Combining Diacritical Marks, copy the combining characters and paste them after letters only to find it didn’t combine anything?
tl;dr
◌ is a character too, its hex is E2 97 8C and if you remove it, it will work just fine. i.e.
| Instead of this | It should be this | |
|---|---|---|
| Hex | 41 E2 97 8C CC 82 | 41 CC 82 |
| Text | A◌̂ | Â |
You can remove those 3 bytes using something like HxD.
In JavaScript you can do
'A◌̂'.split('').filter((letter) => letter !== '◌').join('')
because split('') splits ◌̂ into ◌ and ̂, surprisingly.
Had to find that out for my implementation of xkcd 3054.