Name
URLDecode — New as of ColdFusion 4.5
Synopsis
URLDecode(URLEncodedString
)
Decodes a URL-encoded string. URL-encoded strings have all non-alphanumeric characters, replaced characters with their equivalent hexadecimal escape sequences. Here’s an example that takes a URL-encoded string and decodes it:
<CFSET MyString="Why is the sky blue?"> <CFSET EncodedString=URLEncodedFormat(MyString)> <CFSET DecodedString=URLDecode(EncodedString)> <CFOUTPUT> Original String: #MyString#<BR> URL Encoded: #EncodedString#<BR> Decoded: #DecodedString# </CFOUTPUT>
Get Programming ColdFusion now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.