c# web页面乱码

8/3/2015来源:C#应用人气:1342

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" ?>