由一个html文件中的表单向aspx文件提交数据,通过Request.Form得到的数据中所有中文变成乱码,如果用Response.Write();将其输出,在   ie中显示为一个问号。

解决方法为:
      在web.config中把      
      <globalization    
                          requestEncoding="utf-8"    
                          responseEncoding="utf-8"    
          />
   中的“utf-8”改为“GB2312”,即可!!!

相关文章:

  • 2021-04-26
  • 2021-10-15
  • 2021-05-17
  • 2021-11-18
  • 2021-12-13
  • 2021-06-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2021-11-10
  • 2021-12-29
相关资源
相似解决方案