Remove encoding using PHP

kylex picture kylex · Mar 10, 2010 · Viewed 34.5k times · Source

I have the following text:

We%27re%20proud%20to%20introduce%20the%20Amazing

I'd like to remove the encoding using PHP, but using html_entity_decode() does not work.

Any suggestions?

Answer

erenon picture erenon · Mar 10, 2010
echo urldecode('We%27re%20proud%20to%20introduce%20the%20Amazing');

This is an url_ecoded string. Use urldecode