I want to get the response stream from an Chinese web site.
but the chinese character were not encoded correctly.
I don't know how to encode the chinese characters.
My codes of
VB.NET in an ASP.NET project are as follows:
Dim uri As New Uri("http://www.baidu.com/baidu?word=¤j&cl=3")
Dim request As WebRequest = WebRequest.Create(uri)
Dim respo As WebResponse = request.GetResponse
Dim stream As Stream = respo.GetResponseStream
Dim reader As New StreamReader(stream, Encoding.UTF8)
Response.Write(reader.ReadToEnd)
reader.Close()
respo.Close()