日期:2014-05-18 浏览次数:20514 次
string abc = "dsfdsfsdfdsfds"; byte[] btyes = Encoding.Default.GetBytes(abc); string cba = Encoding.GetEncoding("gb2312").GetString(btyes);
------解决方案--------------------
在asp.net中,一般都是在web.config中配置的
<globalization fileEncoding="gb2312" requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN"/>