Ask a Question related to Macromedia ColdFusion, Design and Development.
-
lingo_user #1
URLEncode does not encode spaces
If I do this
<a
href="http://#CGI.SERVER_NAME##CGI.SCRIPT_NAME#?id=#URLEncodedF ormat(UUID)#">
I get this
<a
href="http://#CGI.SERVER_NAME##CGI.SCRIPT_NAME#?id=CC9BD5F2%2DD 60B%2D497E%2D6E64
41A44715ADCA
But if I do this
#URLEncodedFormat("#UUID#")#
or this
#URLEncodedFormat(UUID)#
I get this
CC9BD5F2%2DD60B%2 D497E%2D6E6441A44715ADCA
Note the " " (space) in the encoded string.
This makes it impossible to use in a browser. Is this bug?
lingo_user Guest
-
Using URLencode ??
I have noticed that there seems to be a lot of chatter about using the urlencode feature within CF. I'm curious how it works, and how to use it in... -
URLEncode Problem from ASP.NET
Hi All: In my application I am sending the input values through query string from a datagrid template column,I used URLEncode to encode the URL... -
Encode::Arabic, Encode::Korean and Encode::Mapper
I would like to introduce soon a new namespace to CPAN, Encode::Arabic, and ask the community for a silent consent. The Encode::Arabic... -
URLEncode
Response.Redirect(@".\folder\" + filename); How could I urlencode this statement so that if the filename contains a special character (in my case... -
Encode or not to encode, that is the question
hey all. for a small website, based off of phpnuke. running on a 2.4 down / 512 up cable connection, doing medium traffic. is it worth encoding... -
MikerRoo #2
Re: URLEncode does not encode spaces
This:
<CFSET UUID = "CC9BD5F2-D60B-497E-6E6441A44715ADCA">
<CFOUTPUT>
<h2>#URLEncodedFormat (UUID)#</h2>
</CFOUTPUT>
works perfectly for me.
What version of CF are you using?
What is your exact code?
Regards,
-- MikeR
MikerRoo Guest
-
lingo_user #3
Re: URLEncode does not encode spaces
Problem solved. I sent the link in a cfmail tag and used the wraptext attribute. This wrapped the UUID and caused the space to appear. Changing wraptext to 100 gave ma a valid value.
lingo_user Guest



Reply With Quote

