I decided to make a mini game of the gallows just not to rust in php, I'm having problems with words with accents, eg apple. Initially I get it from an array and separate itself into an array by getting (m, a, ç, ã). In the game I have a virtual keyboard of the alphabet without accent, how do I when the user press the a key of the keyboard it besides showing the letter a of the second position also show the with accent? would be to compare one character with another by removing the accent from that other. I did not post code because in this case it is irrelevant, since it is only to make (a == ã) true.