I am using php and getting some utf8 string from Javascript.
I try to remove accent... by using a lot of difference function but still have troubles...
With iconv()
I have wrong accent removing, with some encode() I have nothing...
When I use serialize(mystring)
, my wrong char look like followings:
xE3xA0 with A0 depending of the char.
It there any exhaustive map I can use ? Is there another method ?
(I am under php 5.2 and no real control on the server so I cannot use intl/Normalize)
Edit : code like this doesnt works (otherwise it would be ugly but efficient for short term)
$string = mb_ereg_replace('(À|Á|Â|Ã|Ä|Å|à|á|â|ã|ä|å)','a',$string);