Why not just swap out the character to a "_"?

!k

-----Original Message-----
From: Terry L Schmitt [mailto:[EMAIL PROTECTED] 
Sent: June 8, 2006 12:18 PM
To: CF-Talk
Subject: OT: ampersand in file name

I feel kinda goofy having to ask this...
I have a forum that allows attachments and downloading. I use 
URLEncodedFormat() for the file name, but when a file contains an 
ampersand, the user just gets a 404 error when trying to dl the file.

URLEncodedFormat() escapes the ampersand to %26 so the URL would be 
"test1%261%2Edoc".
I've googled around and the consensus is that %26 should work, but it 
doesn't. Am I just going crazy or is this an IIS problem or should I just 
bite the bullet and not allow use of the ampersand character in uploaded 
file names?

T



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242976
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to