title: Reserved Symbol (&, /, etc) in URL Sharepoint Rest Query - Bad Request
body: <p>One problem I have been facing off and on for the past few weeks was trying to search SharePoint for a list item value and kept getting bad request error. I had two symbols causing problems, one was that I could not search for something with anh &amp; symbol, and the other was a / (forward slash).</p>
  
  <p>My code looked like:</p>
  
  <pre><code>ServiceContext context = new ServiceContext(new Uri("http://URL/_vti_bin/listdata.svc"));
      context.Credentials = CredentialCache.DefaultCredentials;
      var requestType = (System.Data.Services.Client.DataServiceQuery&lt;ListTypeValue&gt;)context.ListType
          .Where(v =&gt; v.Value.Equals(search));
  </code></pre>
  
  <p>After searching the internet, nothing valid came back besides saying change IIS settings, or convert it to ASCII Html value (NOTE: converting &amp; to %27 still causes bad request error).</p>