摘要:
1.在web config 添加这个行代码<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>2.requestEncoding默认编码为 UTF-8,该编码在 Machine.config 文件(在安装 .NET Framework 时创建)的 globalization 节中指定。如果在 Machine.config 或 Web.config 文件中未指定请求编码,则编码默认为计算机的“区域选项”区域设置。在单服务器应用程序中,此属性和 responseEnco 阅读全文
posted @ 2012-01-06 12:34
sulin
阅读(380)
评论(0)
推荐(0)
摘要:
1.处理点所有的换行/// <summary>/// 去掉换行符 /// </summary> /// <param name="str"></param>/// <returns></returns>public string GetDeleteBR(string strinput){string p = "\\n|\r\n"; //数据库的的换行是\nstring returnstr = System.Text.RegularExpressions.Regex.Replace(s 阅读全文
posted @ 2012-01-06 12:28
sulin
阅读(550)
评论(0)
推荐(0)

浙公网安备 33010602011771号