上篇文章中,最好的解决办法是在web.config中添加一项:
<system.web>
  <!--
            设置 responseEncoding="gb2312" 将全部网页的编码方式设为gb2312
        -->
  <globalization responseEncoding="gb2312"/>
</system.web>

这样的话,则不必在每页中都加上了。

相关文章:

  • 2021-10-01
  • 2021-08-11
  • 2021-07-20
  • 2021-11-14
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-07-29
  • 2021-08-14
  • 2021-09-30
相关资源
相似解决方案