title: Rules for the list name used with ListData.svc in sharepoint 2010
body: <p>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.</p>
  
  <p>Example : 1) Claim Reminder, GT 
            2) z - Det - andt
            3) z - Pens - afregng fra 3860
            4) z - Grup/liv moget? (Kred)</p>
  
  <p>I tried the following rest api url :</p>
  
  <p><a href="http://domain/_vti_bin/listdata.svc/" rel="nofollow noreferrer">http://domain/_vti_bin/listdata.svc/</a>"+encodeURIComponent(listName)+"/</p>
  
  <p>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.</p>
  
  <p>I consulted the following url : <a href="https://blogs.msdn.microsoft.com/laurieatkinson/2014/06/19/rules-for-the-list-name-used-with-listdata-svc/" rel="nofollow noreferrer">https://blogs.msdn.microsoft.com/laurieatkinson/2014/06/19/rules-for-the-list-name-used-with-listdata-svc/</a></p>
  
  <p>but only got resolution for apostrophe but not the other special characters.</p>
  
  <p>Kindly help.</p>