title: How to convert the encoding type of a stream in .NET?
body: <p>I ve the following stream but I don't know its encoding type because the stream reader detects encoding from byte order marks</p>
  
  <pre><code>Dim reader As StreamReader = New StreamReader(respStream, True) 
  </code></pre>
  
  <p>so how can I detect the encoding type AND convert it to another type? (for ex. from ASCII to UTF8) </p>
  
  <blockquote>
    <p>PS:</p>
    
    <p>What is the difference with the
    following line?</p>
  
  <pre><code>Dim reader As StreamReader = New StreamReader(respStream,
  </code></pre>
    
    <p>Encoding.ASCII, True)</p>
  </blockquote>
  
  <p>Thank You in advance,</p>
  
  <p>Max</p>