URL encode

One Star

URL encode

hi,
i will be getting a value from database and put the value in the url of the FileFetch step and downloading the file.
will it be possible to encode url for the value fetched from the database.
please help.
thanks
jayanth
Not applicable

Re: URL encode

Don't know why you want to encode the URL for tFileFetch, but here's how it should work:
Put java.net.URLEncoder.encode(yourString, "UTF-8") around the string you want to encode. Tested inside a tMap, works fine (for example "www.test.de/index.php?t=1&m=2" becomes "www.test.de%2Findex.php%3Ft%3D1%26m%3D2").

Regards,
Theo