Sunday, March 15, 2015
ColdFusion 11 Issue with EncodeForURL
Well this is a simple little post but I thought it would help someone in case they run into this. I tend to always go with the recommendation of using a new Function over an old one, especially when the docs tell you to. So as Adobe recommends to use EncodeForURL over urlEncodedFormat, I did and then this funny thing happened. I was trying to read an image and it would fail and it appears that when the string was being escaped, spaces where entered as "+" instead of "%20" as expected. I do not know if this is a bug or expected behavior but I thought I would share.