The code below explicitly states how to save UTF-8 without specification.
Dim utf8WithoutBom As New System.Text.UTF8Encoding(False) Dim orfWriter As System.IO.StreamWriter = New System.IO.StreamWriter(fileName, append, utf8WithoutBom) orfWriter.Write(saveString) orfWriter.Close()
For full documentation see www.ezVB.net .
user3032129
source share