<cfset tmp = "a123##45.pdf"> <cfset fname = replace(tmp, listfirst(tmp, "."), urlEncodedFormat(listfirst(tmp, ".")))>
<cfoutput>#fname# from #tmp#</cfoutput> The above code returns: a123%2345.pdf from a123#45.pdf -----Original Message----- From: simmyana a [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 1:23 AM To: CF-Talk Subject: Re: Opening a file with ## in the Filename Thanks for the response could you please tell me how to encode only special characters excluding the filename extension. when I use URLEncodedFormat(),it will display file name A27#.pdf A27%23%2Epdf.I want to retain the file extension. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201696 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

