Quote:
Originally Posted by korssane
Hi Peers,
i'am trying to pass a URL "encodedFormat" string to another page.
I'am having trouble to pass symbols like # otherwise everything else seem to work.
source page
Code:
<cfset var1="abc$d">
<cflocation url="URLDECODE.cfm?var11=#urlEncodedFormat(var1)#">
destination page
Code:
<cfoutput>
The url variable passed is : #URL.var11# </cfoutput>
if i put var1="abc12#", this will gimme an error ...
problem happens with "#" symbol ...
Thoughts
|
Since the # symbol is a special character in coldfusion, you need to escape it in a string. Try "abc12##" instead.