How to write to a file in Unicode in Vb.Net

Posted by Craig Johnston on Stack Overflow See other posts from Stack Overflow or by Craig Johnston
Published on 2010-06-11T09:32:01Z Indexed on 2010/06/11 9:42 UTC
Read the original article Hit count: 794

Filed under:
|
|

How should I modify the following Vb.Net code to write str to the file in unicode?

Do I need to convert str to Unicode before writing to the file?

Using sw As StreamWriter = New StreamWriter(fname)
    sw.Write(str)
    sw.Close()
End Using

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about unicode