I would like to return the search results for the documents which has apostrophe by using KQL (Programatically ) in sharepoint 2016. How can i achieve this ?
1 Answer
You can insert a backslash "\" before the apostrophe.
As an alternative, you can use SPEncode.UrlEncode method to encode your url, so the method will build the correct URL for you.
-
Tried, not working... without doing encoding it is working fine.– ShareCommented Jan 31, 2018 at 16:45