Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Returning %40 to an @ symbol

Tags:

html

php

dev%40bionic%2Dcomms%2Eco%2Euk 

I want to turn the above back in to readable text. Can anyone tell me how? Thanks

EDIT Forgive my oversight, PHP is the language of choice!

like image 336
Drew Avatar asked Dec 01 '22 12:12

Drew


2 Answers

You haven't said which language, but in many the function you want is urldecode

(Looking at your other questions, you probably want PHP. It is urldecode there :))

like image 94
The Archetypal Paul Avatar answered Dec 09 '22 20:12

The Archetypal Paul


In JavaScript: decodeURIComponent("dev%40bionic%2Dcomms%2Eco%2Euk")

like image 36
Piskvor left the building Avatar answered Dec 09 '22 18:12

Piskvor left the building