I want to fetch contents of sharepoint 2010 list through rest API. But name of my lists are really wired (They contain all sorts of special characters like: "," , "?" , "-" , "/" , "(" etc) and i can't change them.
Example : 1) Claim Reminder, GT 2) z - Det - andt 3) z - Pens - afregng fra 3860 4) z - Grup/liv moget? (Kred)
I tried the following rest api url :
http://domain/_vti_bin/listdata.svc/"+encodeURIComponent(listName)+"/
When the listName is simple ie. without special characters and empty spaces,I get the output. But when it contains the above special characters, it gives error.
I consulted the following url : https://blogs.msdn.microsoft.com/laurieatkinson/2014/06/19/rules-for-the-list-name-used-with-listdata-svc/
but only got resolution for apostrophe but not the other special characters.
Kindly help.