title: Encode path to file on server and decode on client
body: <p>I have a path to file like <code>D:\\Folder1\\bin\\11m2011y\\sadfj34f3kl4fj34klfjkl34f.bin</code>
  So, when i send in to JavaScript, i lose characters <code>:</code>, <code>\</code>, <code>.</code></p>
  
  <p>Is there way to encode this string on server side (.net) and then decode on client (javascript)?</p>
  
  <p>Thx</p>
  
  <p><strong>Answer</strong>:</p>
  
  <p><strong>.net</strong>:System.Web.HttpContext.Current.Server.UrlEncode()</p>
  
  <p><strong>javascript</strong>:unescape()</p>