title: Fix Special Characters in String
body: <p>I've got a program that in a nutshell reads values from a SQL database and writes them to a tab-delimited text file.</p>
  
  <p>The issue is that some of the values in the database have special characters (TM, dash, ellipsis, etc.)  When written to the text file, the formatting is lost and they come across as junk "â„¢ or â€“ etc"</p>
  
  <p>When the value is viewed in the immediate window, before it is written to the txt file, everything looks fine.  My guess is that this is an issue of encoding.  But, I'm not real sure how to proceed, where to look, or what to look for.  </p>
  
  <p>Is this ASCII or UTF-8?  If it's one of those how do I correct it before it's written to the text file.</p>
  
  <p>Here's how I build the text file (where feedStr is a StringBuilder)</p>
  
  <pre><code>objReader = New StreamWriter(filePath)
  objReader.Write(feedStr)
  objReader.Close()
  </code></pre>