title: url encoding in xmlhttprequest
body: <p>Iam trying to encode url of the xmlhttprequest method as utf-8</p>
  
  <pre><code>var Url=("http://localhost/day1/tryconnect.php?add="+address)  ;       // the server script to handle the request
  if (window.XMLHttpRequest) {
         xmlhttp= new XMLHttpRequest() ;        // For all modern browsers
         } 
  
   else if (window.ActiveXObject) {
       xmlhttp=new ActiveXObject("Microsoft.XMLHTTP") ;   // For (older) IE
   }
    if (xmlhttp.readyState==4 &amp;&amp; xmlhttp.status==200)
  {
  alert("connection is stable") ;
  }
  
  
   xmlhttp.open("GET", Url, false);   
   xmlhttp.send(null);
   var xml = xmlhttp.responseXML ; 
  </code></pre>
  
  <p>i tried the following method to encode the Url <a href="http://www.webtoolkit.info/javascript-utf8.html" rel="nofollow">http://www.webtoolkit.info/javascript-utf8.html</a><br>
  it didn't work for me</p>