title: How to get content of httpWebresponse in proper string form?
body: <p>Sometimes I am getting kind of garbled response from several web sites.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>Stream responseStream = response.GetResponseStream();
  buffer = new Byte[256];//
  int bytesRead;
  while ((bytesRead = responseStream.Read(buffer, 0, buffer.Length)) &gt; 0)
  {
     outStream.Write(buffer, 0, bytesRead);
     //resp=resp+ .UTF8.GetString(buffer, 0, bytesRead);
     resp=resp + Encoding.ASCII.GetString(buffer); //resp is string
  }
  </code></pre>
  
  <p>when I request from www.google.co.in I get following characters in resp string:</p>
  
  <blockquote>
    <p>?\b\0\0\0\0\0??}y?F?????????Z??????{7m???oX?\r?Y???33??d;y????n?0?</p>
  </blockquote>
  
  <p>How should I overcome this problem? Is it related to encoding?</p>