title: encoding in server and decode in javascript using escape
body: <p>I have to encode string in c# and decode it with javascript unescape function.</p>
  
  <p>the javascript unescape is the only option since I am sending the string with get request to some api that using unescape to decoed it.</p>
  
  <p>i tried almost everything</p>
  
  <pre><code>server.urlencode
  WebUtility.HtmlEncode
  </code></pre>
  
  <p>and a lot other encoding! I even tried <code>Uri.EscapeDataString</code> using jscript</p>
  
  <p>Nothing isn't encode like the "escape" function</p>
  
  <p>Any idea How to make it work?</p>
  
  <p>EDIT:</p>
  
  <p>this is my code</p>
  
  <pre><code>string apiGetRequest = String.Format("http://212.00.00.00/Klita?name={0}&amp;city={1}&amp;CREATEBY=test ", Uri.EscapeDataString(name), Uri.EscapeDataString(city));
  HttpWebRequest req = (HttpWebRequest)WebRequest.Create(apiGetRequest);
  req.GetResponse();
  </code></pre>