title: utf-8 character url both in c# webrequest and browser not work
body: <p>Im trying to send some data to a machin via LAN cable and WebRequest
  this is the class im using</p>
  
  <pre><code>public class MyWebRequest
  {
      private WebRequest request;
      private Stream dataStream;
  
      private string status;
  
      public String Status
      {
          get
          {
              return status;
          }
          set
          {
              status = value;
          }
      }
  
      public MyWebRequest(string url)
      {
  
          request = WebRequest.Create(url);
      }
  
      public MyWebRequest(string url, string method)
          : this(url)
      {
  
          if (method.Equals("GET") || method.Equals("POST"))
          {
              request.Method = method;
          }
          else
          {
              throw new Exception("Invalid Method Type");
          }
      }
  
      public MyWebRequest(string url, string method, string data)
          : this(url, method)
      {
  
          string postData = data;
          byte[] byteArray = Encoding.UTF8.GetBytes(postData);
  
          request.ContentType = "application/x-www-form-urlencoded";
  
          // Set the ContentLength property of the WebRequest.
          request.ContentLength = byteArray.Length;
  
          dataStream = request.GetRequestStream();
  
          dataStream.Write(byteArray, 0, byteArray.Length);
  
          dataStream.Close();
  
      }
  
      public string GetResponse()
      {
          WebResponse response = request.GetResponse();
  
          this.Status = ((HttpWebResponse)response).StatusDescription;
  
          dataStream = response.GetResponseStream();
  
          StreamReader reader = new StreamReader(dataStream);
  
          string responseFromServer = reader.ReadToEnd();
  
          reader.Close();
          dataStream.Close();
          response.Close();
  
          return responseFromServer;
      }
  
  }
  </code></pre>
  
  <p>and the action code is </p>
  
  <pre><code>    command="?insert_employee:cart_number=0007989222&amp;name=علي&amp;last_name=رمضاني&amp;finger_number=123&amp;?";
  MyWebRequest wr = new MyWebRequest(command, "GET");
  string Response = wr.GetResponse();
  </code></pre>
  
  <p>as you see there is some utf-8 character in my command and it dose not work both in browser and my application
  but when i try this string it works perfectly:</p>
  
  <pre><code>command = "?insert_employee:cart_number=0007989222&amp;name=ali&amp;last_name=ramazani&amp;finger_number=123&amp;?"
  </code></pre>
  
  <p>i tested many ways which i found in stackoverflow such as "using uri instead of url", "using httpUtility.UrlEncode", ... but none of them was effective or maybe i use them in a wrong way.</p>
  
  <p>do you have any idea for helping?</p>