Often “in the wild”, even in English texts, you meet both accented versions and non-accented versions of certain words, such as brand names.
You’re then facing two options – you can either work with both versions, or get rid of accents. The latter option bears advantage of cutting down the dimensionality of the problem, as you don’t need to presume that you support all existing versions of the spelling, but how to get there?
OK, we all know, all is wrong with PHP. It’s a language where main programming style is hack/patch, and that’s also the way it’s organized. Where else do you have functions that in one variant have certain order of parameters and in other reversed?… OK, in quite a few, but that’s not the point.