Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

encode and decode

Status
Not open for further replies.

khue

Programmer
Mar 6, 2001
112
US
How do you pass a string that has spaces with the URL for netscape. I just noticed that when passing values through the URL, Netscape descard anything thing that follows a space. Somehow, it doesn't like the space(s). How do you encode a value that has spaces and then decode it when the next page receives in Cold Fusion?
 
hi khue

try #URLencodedFormat("what's my name")#

should get: what%27s%20my%20name

This should do what you need.
 
Strantheman,

Then how do I decode it so that I will get the correct value back for processing?
 
Using this
#URLDecode(urlEncodedString)#

you will get decoded value
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top