View Single Post
Old 01-13-2012, 03:33 AM   PM User | #2
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
Quote:
Originally Posted by korssane View Post
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.
__________________
Teed
teedoff is offline   Reply With Quote