Please i am try to change the spaces with % to create a URL parameter
e.g. This is a boy
This%is%a%boy.
anyone know thanks.
Please i am try to change the spaces with % to create a URL parameter
e.g. This is a boy
This%is%a%boy.
anyone know thanks.
Thanks, By applying the function Encode URI is worked.
You have the right idea, but it should be %20, not just %.
See:
https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=encoding%20spaces%20in%20urls
Bill,
Ironically. the first hit on the google search you posted links to a discussion where someone recommends using + instead of %20 for creating URL for forms.
-Ben
Dear Bill,
i am passing the string through metadata fields in the workflow. How can i replace the spaces with + or %20 before creating the URL.
Hi Ben -
I noticed, but still prefer using %20 as a convention - it just seems a little more clear. Between +'s and &'s which work differently in various situations, I'd rather not be interpreting stuff all the time.
Adnan, there are various encoding libraries that will do that for you, and as a fall back position, there is always good old Replace in a script task.