ColdBox or IIS Forcing URL Decode

I have a situation where I’m trying to figure out where is the URL decoding is happening. From my understanding to have a SEO friendly URL I should replace spaces with hyphens (-). For example, if I have a URL string as somedomain.com then I should change to somedomain.com
So I have a following scenario where I URLEncoded the strings and replaced the %20 to hyphens. See example below.

Original URL:
http://dummy.com/KL01-10-243A/WASHER, SEALING

URL Encoded URL
http://dummy.com/KL01%2d10%2d243A/WASHER%2C%20SEALING

SEO Friendly URL (I’ve replaced the %20 to a hyphen):
http://dummy.com/KL01%2d10%2d243A/WASHER%2C-SEALING

However, on the ColdFusion side the URL string is returned as follows.
http://dummy.com/KL01-10-243A/WASHER,-SEALING

It already decoded it for me before I could replace the hyphens to %20 then decode the string.

Is this an IIS, ColdFusion, or ColdBox issue. I would prefer the URL strings were NOT decoded automatically.
I’m on the following environment.
Windows 2012 Server 64bit
IIS 8
ColdBox 3.8.1

I’m not sure if I really understand what you’re doing, but ColdFusion (or the underlying Java servlet container) has always handled decoding URL data when it parses the query string. That kind of string parsing is abstracted from your code for good reason.

That said, if you want to parse the bits yourself, check out the cgi.request_url variable.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com