[求助]流输出问题!!!急
读取文件内容的时候可以读取英文和数字,但读取中文的时候出现乱码。请问应该怎么办? 小弟先谢啦! 代码如下:
Private Sub Read_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Read.Click Dim FS As FileStream Dim str As String Dim cl As String = Chr(13) & Chr(10) FS = New FileStream("cql.txt", FileMode.OpenOrCreate, FileAccess.Read) Dim tr As New StreamReader(FS) tr.BaseStream.Seek(0, SeekOrigin.Begin) While tr.Peek() > -1 str &= tr.ReadLine & cl End While tr.Close() TextBox1.Text = str End Sub