Without running my own experiments, I was curious that you are URL decoding a 
string that has not been URL encoded?  And if I am not mistaken, the % 
character is an escape character in URL encoding.  So what I would suspect is 
happening is that it is trying to decode "% " and getting something weird.

What do you get if you try this;

<cfset FORM.goalComments = URLEncodedFormat("100% match")/>
<cfoutput>#URLDecode(FORM.goalComments)#</cfoutput>



--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

....-----Original Message-----
....From: Scott Brady [mailto:[EMAIL PROTECTED]
....Sent: Tuesday, June 21, 2005 10:40 AM
....To: CF-Talk
....Subject: URLDecode and %<space>
....
....I've run across an issue that I THINK may be a bug in the URLDecode()
....function.
....
....Using CFMX 7 (haven't tried earlier versions), this code:
....<cfset FORM.goalComments = "100% match" />
....<cfoutput>#URLDecode(FORM.goalComments)#</cfoutput>
....
....ends up outputting:
....100% mtch
....
....I've narrowed it down to the % followed by a space.  If you
....URLDecode("% xy") [where x and y can be any character], it strips out
....the "y".  It's like it's interpreting %<space> to mean "jump one
....character and delete".
....
....Has anyone seen this or know why this might be?
....
....[Right now, the code I'm seeing this in may not even need the
....URLDecode() function [I'm investigating], but it still appears to be a
....problem]
....
....Scott
....--
....-----------------------------------------
....Scott Brady
....http://www.scottbrady.net/
....
....

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210146
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to