You are viewing limited content. For full access, please sign in.

Question

Question

URL Parameter values as string with out spaces.

asked on March 7, 2015

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.

0 0

Replies

replied on March 8, 2015

Thanks, By applying the function Encode URI is worked.

 

2 0
replied on March 7, 2015

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

 

 

 

0 0
replied on March 7, 2015

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

0 0
replied on March 7, 2015

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.

 

0 0
replied on March 8, 2015

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.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.