This seems like something that ought to be obvious...
# cfml-general
t
This seems like something that ought to be obvious from the documentation, but either I'm blind, or it's not there... What is the difference between
decodeFromURL
and
urlDecode
? I see that that latter optioanlly takes a character set, but is there any mor to it than that?
b
https://cfdocs.org/urldecode is an older version of the function which has been around since CF 4.5. Is is very basic. https://cfdocs.org/decodefromurl is newer and uses the EASPI java libraries which are more advanced and updated more recently.
Use the latter for any new code.
t
thanks
a
As that is fairly important, should the docs reflect this? (full disclosure: on the tube on me phone, so did not check the vendor-specific docs)
t
It's there for
URLEncodedFormat
but not for
DecodeURL
(at least for the Adobe docs)
so the docs should probably reflect it, for consistency if nothing else.