Generates a URL-encoded string. For example, it replaces spaces
with %20, and non-alphanumeric characters with equivalent
hexadecimal escape sequences. Passes arbitrary strings within a
URL.
urlEncodedFormat(String [, charset])
→ returns string
utf-8iso-8859-1windows-1252us-asciishift_jisiso-2022-jpeuc-jpeuc-krbig5euc-cnutf-16It returns url encoded string.
writeOutput(URLEncodedFormat('This is a string with special character.'));
Expected Result: This%20is%20string%20with%20special%20character%2E
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.