The server automatically unencodes any url parameters for you, so no.  If
you want to use an encoded value later in the same request (or that was
passed in a form field), you will have to manually unencode it.

Cheers,
barneyb

> -----Original Message-----
> From: Mickael [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 22, 2004 2:00 PM
> To: CF-Talk
> Subject: Re: Trucating Variables
>
> Thanks Barney,
>
> I will try that do I need to URLDecode after?
>   ----- Original Message -----
>   From: Barney Boisvert
>   To: CF-Talk
>   Sent: Thursday, April 22, 2004 3:46 PM
>   Subject: RE: Trucating Variables
>
>
>   The first ampersand in your locator is being interpreted as
> the end of the
>   'sitelocator' url variable.  Use URLEncodedFormat to encode
> it before
>   sticking it in the URL.
>
>   Cheers,
>   barneyb
>
>   > -----Original Message-----
>   > From: Mickael [mailto:[EMAIL PROTECTED]
>   > Sent: Thursday, April 22, 2004 12:27 PM
>   > To: CF-Talk
>   > Subject: Trucating Variables
>   >
>   > Hello All,
>   >
>   > I have a weird issue that I was wondering if someone could
>   > shed some light on for me.
>   >
>   > I have a site where I need to change language settings for
>   > the user on the fly.  They can log on and then run a report
>   > then view the results, the client wanted that once results
>   > are displayed they should be able to switch to another language.
>   >
>   > What I was doing was creating a variable called sitelocator
>   > which is
> http://#cgi.SERVER_NAME##cgi.SCRIPT_NAME#?#cgi.QUERY_STRING#'
>   >
>   > And I was appending that to the url.  Once the user clicks on
>   > the different language, I direct them to a page with
>   > depending on the language I update the database for future
>   > accesses then I wanted to redirect them to the exact page
>   > where they were previously.
>   >
>   > In my url I can see
>   > "index.cfm?Sitelocator=http://mydomain.com/TrackingReport/inde
>   > x.cfm?status=B&Month=4&Year=2004&list=GO&Year2=2004"
>   >
>   > Yet when I the do a CFLOCATION or simply output the link for
>   > them to return, by #url.sitelocator# the value of sitelocator
>   > is http://mydomain.com/TrackingReport/index.cfm?status=B not
>   > he rest of the url variable.
>   >
>   > I am sure that I have not hit the limit to the variable size
>   > as I am displaying it on the url?
>   >
>   > Any ideas
>   >
>   > Thanks
>   >
>   > Mike
>   >
>   >
>   >
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to