title: How to get the encoding type of a string?
body: <p>With the following code, I get a string from a stream but I don't know the encoding type because it's detected automatically by StreamReader; </p>
  
  <p>how can I get the encoding type of the string respHTML?</p>
  
  <pre><code>Dim reader As StreamReader = New StreamReader(respStream, True)
  Dim respHTML as String = reader.ReadToEnd()
  </code></pre>