框架页,URL中文参数乱码

在web.config这样声明编码
  <globalization requestEncoding="utf-8"  responseEncoding="utf-8"  fileEncoding="utf-8" />

左框架静态页面这样声明
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />

右框架是一个aspx页
   If Not (Request("type") Is Nothing) Then
        dim s as string= Request("type") //乱码

发现左框架的URL中文参数在右框架无法转成UTF8,而且在右框架无论怎么转码都无法还原到UTF8。 用别人做好的页面要注意了。

原文地址:https://www.cnblogs.com/LCX/p/1637524.html