Skip to content
Advertisement

Replacing accented characters php

I am trying to replace accented characters with the normal replacements. Below is what I am currently doing.

JavaScript

This gives me:

JavaScript

The above gives me ric cantona I want the output to be eric cantona.

can anyone help me with where I am going wrong?

Advertisement

Answer

I have tried all sorts based on the variations listed in the answers, but the following worked:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement