1. webconfig 配置<globalization requestEncoding="gb2312" responseEncoding="gb2312"/>2. 程序页面
    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
          Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312")
    End Sub Sub SaveConfig()        Dim hf As New System.IO.StreamWriter(Server.MapPath(".") & "\Inc\config.asp")
        hf.Write("<" & "%" & vbCrLf)         
        Label1.Text = hf.Encoding.webname
        hf.Close()
        hf = Nothing

end sub
我看到有些使用c# 可以实现的但是 用asp.net如何实现?