title: How to write to a file in Unicode in Vb.Net
body: <p>How should I modify the following Vb.Net code to write <code>str</code> to the file in unicode?  </p>
  
  <p>Do I need to convert <code>str</code> to <em>Unicode</em> before writing to the file?</p>
  
  <pre><code>Using sw As StreamWriter = New StreamWriter(fname)
      sw.Write(str)
      sw.Close()
  End Using
  </code></pre>