3

I have a url http://example.com/?q1=abc;q2=123;q3=xyz When I try to add a link to this url on a SharePoint page the semicolon is replaced by %3b. What can I do to add the correct link?

  • are you trying to add it in wiki page, web part pages? – Karthik Jaganathan Oct 15 '13 at 9:44
  • @KarthikJaganathan It's a default publishing page. – jlai79 Oct 15 '13 at 11:00
  • It's browser encoding of a special character. I don't think you can change it. – user2536 Oct 15 '13 at 12:18
  • @DanielZiga No, it's not the browser. SharePoint stores the ; as %3b – jlai79 Oct 15 '13 at 13:36
2

If the encoding of semicolons is breaking your query string, use ampersands instead. They are both allowed.

  • That helps but I have to change a lot of links that I get from an external service. – jlai79 Oct 15 '13 at 13:37
  • How are you getting them? If it's programmatically, surely you could find some function to replace semicolons with ampersands. For example, the XPath translate function could be used right before they get displayed on the SharePoint page. – Aron Foster Oct 15 '13 at 14:10
0

This is normal encoding and is required to use URLs reliably.

Look at http://www.asciitable.com to see how other characters may be encoded.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.