I got an string like:
M%C3%B2nica
So I need to get something like "Mònica".
Which is the best way in PHP?
echo rawurldecode ('M%C3%B2nica'); // prints Mónica
You can either use urldecode() or rawurldecode(), but in your case it probably doesn't make a difference. (read more on this here: urlencode vs rawurlencode?)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With