Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: jegnjOriginally posted by: stonysmith
I'm not sure what your question is.
In the URL you pass to Sharepoint, you need to encode certain special characters such as blank which is commonly replaced by %20
something like
URL=URL.replace(" ","%20")
will do the trick, but you will need to account for all the special characters that you need to use in your string.
http://en.wikipedia.org/wiki/Percent-encoding
The error says
Valid pattern cannot begin or end with a dot, cannot contain consecutive dots and cannot contain any of the following characters:
~ " # %e & * : < > ? { | }.
But you think %20 would work? So far it does not.