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如何实现?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货