[求助] 打开数据库,汉字乱码怎么办?
Dim connstring As Stringconnstring = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\NacuesC\yx11547\Guangxi;Extended Properties=Paradox 5.x;Mode=ReadWrite;"
Dim sqlsel As String
sqlsel = "select zkzh,xm,xbdm from t_tdd.db where zkzh='010110007'"
Dim conn As New OleDbConnection(connstring)
Dim adp As New OleDbDataAdapter(sqlsel, conn)
Dim ds As New DataSet
adp.Fill(ds, "st_sycx")
DataGrid1.DataSource = ds.Tables("st_sycx").DefaultView
DataGrid1.DataBind()
conn.Close()
conn.Dispose()
ds.Dispose()
程序能读取数据,但是数据库中汉字全是乱码?
请高手指点。