Share via


need special characters in URL link

Question

Thursday, November 29, 2012 9:01 PM

I have a web page that contains the standard Links list in SP 2010.  Some my users need links to sites that use special characters.  If I paste in the URL, SP converts the string to the % character representation, but then the link will not work.

Any suggestions?

All replies (6)

Tuesday, December 4, 2012 3:33 AM âś…Answered

Yeah, .NET is going to encode that URL (this isn't SharePoint-specific).  I *think* the only way out of this would to be create a special field type that didn't involve SPUrlUtility (which will go through the process of encoding).

http://en.wikipedia.org/wiki/Percent-encoding

SharePoint - Nauplius Applications
Microsoft SharePoint Server MVP - 2012


Friday, November 30, 2012 4:13 AM

Can you provide a list of "special" characters?  SharePoint does strip out/convert certain characters.

SharePoint - Nauplius Applications
Microsoft SharePoint Server MVP - 2012


Monday, December 3, 2012 7:54 PM

Just about all of the ones that are prohibited, such as <+*@$>  - need ;:? as well.   

Any ideas?


Monday, December 3, 2012 8:12 PM

Can you provide a full URL example that is breaking, and place it in a code block so the forum doesn't modify the formatting?

SharePoint - Nauplius Applications
Microsoft SharePoint Server MVP - 2012


Monday, December 3, 2012 11:15 PM

It is to an internal intranet site, not accessible to the public.

an example would have strings such as:

s=**+Contact+From+Web+Page:+Problem+**;b=FFF;d=DDD;stylesheet=/css/main.css;

Each of these sub-string parts are sending information to the site, configuring the request. 

I can paste the string into a browser and it works fine.  When I insert the same paste into the SP URL field, the paste shows correctly, but when I save it, then the substitution to the percent codes occur and the link never works.  Apparently the internal site has to have the special characters (not part of my organization).


Wednesday, December 5, 2012 1:24 PM

Ok

Thanks for the information!