c# web页面乱码

1、在web.config中加入:<globalization requestEncoding="GB2312" responseEncoding="GB2312" culture="zh-CN" fileEncoding="GB2312"/>
2、在<%@ Page...>中加入:codepage=936
3、<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
4、<?xml version="1.0" encoding="gb2312" ?>

posted @ 2015-04-21 22:44  赵凤龙  阅读(1713)  评论(0编辑  收藏  举报