URL Decoding in PHP

Viewed 94225

I am trying to decode this URL string using PHP's urldecode function:

urldecode("Ant%C3%B4nio+Carlos+Jobim");

This is supposed to output...

'Antônio Carlos Jobim'

...but instead is ouptutting this

'Antônio Carlos Jobim'

I've tested the string in a JS-based online decoder with great success, but can't seem to do this operation server side. Any ideas?

6 Answers

first you have to decode in urldecoder function "urldecoder()" and then use utf decoder function "utf_decoder()"

Related