URLDecode()
Decodes an URL-encoded string.
URLDecode( string=string, charset=string );
Returns: String
Argument | Description | Default |
---|---|---|
string
string,
required
|
URL-encoded string. |
|
charset
string,
optional
|
The character encoding in which the string is encoded. |
utf-8 |
Examples
encoded_string = "https%3A%2F%2Fdev%2Elucee%2Eorg%2Ft%2Fwelcome%2Dto%2Dlucee%2Ddev%2F2064";
dump(URLDecode(encoded_string)); // https://dev.lucee.org/t/welcome-to-lucee-dev/2064
See also
- Encode/Decode
- URLEncode()
- string.uRLDecode()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)