string.uRLDecode()
Decodes a URL-encoded string.
string.uRLDecode( charset=string )
Returns: String
Argument | Description |
---|---|
charset
string,
optional
|
The character encoding in which the string is encoded. |
Examples
encoded_string = "https%3A%2F%2Fdev%2Elucee%2Eorg%2Ft%2Fwelcome%2Dto%2Dlucee%2Ddev%2F2064";
dump(encoded_string.URLDecode()); // https://dev.lucee.org/t/welcome-to-lucee-dev/2064